Go to the documentation of this file. 1 #ifndef CscGlTFParser_h
2 #define CscGlTFParser_h
15 #include <unordered_set>
18 using std::numeric_limits, std::unordered_set, std::set;
63 void update(
const Vec3 &point);
64 void update(
double x,
double y,
double z);
65 string toString()
const;
84 void computeBoundingBoxAndVerticesAndPolygons(
GltfParseContext &context,
BoundingBox &globalBBox,
bool collectVerticesAndPolygons, vector<const CscPoint3d *> *vertices, vector<const CscPolygon *> *polygons,
unsigned nodeIndex,
CscJsonObjectReader &node);
89 vector<pair<unsigned, CscJsonObjectReader *>> findNodesStartingBy(
GltfParseContext &context,
const vector<string> &searchNamePrefixes);
91 void sortByName(vector<pair<unsigned, CscJsonObjectReader *>> &nodes);
104 unique_ptr<CscLogger>
logger = CscLogger::getForCategory(
"CscGlTFParser");
109 void processMesh(
GltfParseContext &context,
unsigned meshIndex,
CscJsonObjectReader &mesh,
BoundingBox &globalBBox,
bool collectVerticesAndPolygons, vector<const CscPoint3d *> *vertices, vector<const CscPolygon *> *polygons,
const double transform[4][4]);
114 void processNode(
GltfParseContext &context,
unsigned nodeIndex,
CscJsonObjectReader &node,
BoundingBox &globalBBox,
bool collectVerticesAndPolygons, vector<const CscPoint3d *> *vertices, vector<const CscPolygon *> *polygons,
const double parentTransform[4][4],
int currentDepth,
int maxDepth);
Definition: CscGlTFParser.h:57
Definition: Csc2dTypes.cpp:9
Vec3 min
Definition: CscGlTFParser.h:58
Definition: CscGlTFParser.h:28
Definition: CscEntityModelData.cpp:9
map< size_t, CscJsonObjectReader * > accessorsJsonByIndex
Definition: CscGlTFParser.h:42
static std::unique_ptr< CscLogger > logger
Definition: gltfHelpers.cpp:6
Definition: CscGlTFParser.h:73
Vec3 max
Definition: CscGlTFParser.h:59
CscJsonObjectReader & gltfJsonRoot
Definition: CscGlTFParser.h:30
map< size_t, CscJsonObjectReader * > bufferViewsJsonByIndex
Definition: CscGlTFParser.h:44
Definition: CscEntityModelGlTFLoader.cpp:32
set< size_t > sceneNodeIndices
Definition: CscGlTFParser.h:49
Definition: CscCommandMetadataBuilder.h:20
map< size_t, CscJsonObjectReader * > nodesJsonByIndex
Definition: CscGlTFParser.h:41
map< size_t, CscJsonObjectReader * > buffersJsonByIndex
Definition: CscGlTFParser.h:43
CscJsonObjectReader * getNode(GltfParseContext &context, size_t nodeIndex)
Definition: CscGlTFParser.h:93
const optional< fs::path > binFilePath
Definition: CscGlTFParser.h:31
set< unsigned > sceneRootNodeIndices
Definition: CscGlTFParser.h:38
map< unsigned, unsigned > nodeParents
Definition: CscGlTFParser.h:33
T getRequiredArrayItemValue(const string &arrayKey, size_t index)
Definition: json.h:279
Definition: Csc3dTypes.h:367
map< size_t, vector< unsigned char > * > bufferDataCache
Definition: CscGlTFParser.h:40