Skip to content

Commit f0d361f

Browse files
authored
Merge pull request #56 from cdyk/gltf-merge-meshes
Gltf merge meshes
2 parents 63e89e7 + d283bbe commit f0d361f

7 files changed

+417
-76
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ Options:
5555
rotation of 90 degrees about the X axis such that the +Z axis
5656
will map to the +Y axis, which is the up-direction of GLTF-
5757
files. Default value is true.
58+
--output-gltf-merge-geos=<bool> If true, all geometries below a node will be merged instead
59+
of having a dummy holder node to hold each geometry piece.
60+
This transform geometries into common frames, disable this to
61+
avoid that. Default value is true.
5862
--output-gltf-split-level=<uint> Specify a level in the hierarchy to split the output into
5963
multiple files, where 0 implies no split. Geometries and
6064
attributes below the split point are included in the first

src/Common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ void align(Store* store, Logger logger);
111111
bool exportJson(Store* store, Logger logger, const char* path);
112112
bool discardGroups(Store* store, Logger logger, const void* ptr, size_t size);
113113
bool exportRev(Store* store, Logger logger, const char* path);
114-
bool exportGLTF(Store* store, Logger logger, const char* path, size_t splitLevel, bool rotateZToY, bool centerModel, bool includeAttributes);
114+
bool exportGLTF(Store* store, Logger logger, const char* path, size_t splitLevel, bool rotateZToY, bool centerModel, bool includeAttributes, bool mergeGeometries);

0 commit comments

Comments
 (0)