Skip to content

Commit

Permalink
Merge pull request #125 from Geodan/use_sharpgltf_extension_mechanism
Browse files Browse the repository at this point in the history
Use sharpgltf extension mechanism (SharpGLTF.Cesium)
  • Loading branch information
bertt authored Oct 24, 2023
2 parents 4893de3 + cf21b92 commit 5e92693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/wkb2gltf.core/GlbCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using SharpGLTF.Geometry.VertexTypes;
using SharpGLTF.Materials;
using SharpGLTF.Scenes;
using SharpGLTF.Schema2;
using Wkb2Gltf.extensions;
using Wkb2Gltf.Extensions;

Expand Down Expand Up @@ -60,6 +61,7 @@ public static byte[] GetGlb(List<List<Triangle>> triangles, string copyright = "
model.LogicalNodes.First().LocalTransform = new SharpGLTF.Transforms.AffineTransform(localTransform);

if (addOutlines) {
CesiumExtensions.RegisterExtensions();
foreach (var primitive in model.LogicalMeshes[0].Primitives) {
primitive.AddOutlines();
}
Expand Down
3 changes: 2 additions & 1 deletion src/wkb2gltf.core/wkb2gltf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
<PackageReference Include="b3dm-tile" Version="1.1.1" />
<PackageReference Include="bertt.triangulator" Version="1.2.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SharpGLTF.Cesium" Version="1.0.0-cesiummetadata3" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
<PackageReference Include="System.Drawing.Primitives" Version="4.3.0" />
<PackageReference Include="System.Numerics.Vectors" Version="4.6.0-preview5.19224.8" />
<PackageReference Include="Wkx" Version="0.5.1" />
<PackageReference Include="SharpGLTF.Toolkit" Version="1.0.0-cesiummetadata" />
<PackageReference Include="SharpGLTF.Toolkit" Version="1.0.0-cesiummetadata3" />
</ItemGroup>
</Project>

0 comments on commit 5e92693

Please sign in to comment.