MCPcopy Create free account
hub / github.com/assimp/assimp / Model

Method Model

code/AssetLib/FBX/FBXModel.cpp:60–76  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

58
59// ------------------------------------------------------------------------------------------------
60Model::Model(uint64_t id, const Element &element, const Document &doc, const std::string &name) :
61 Object(id, element, name), shading("Y") {
62 const Scope &sc = GetRequiredScope(element);
63 const Element *const Shading = sc["Shading"];
64 const Element *const Culling = sc["Culling"];
65
66 if (Shading) {
67 shading = GetRequiredToken(*Shading, 0).StringContents();
68 }
69
70 if (Culling) {
71 culling = ParseTokenAsString(GetRequiredToken(*Culling, 0));
72 }
73
74 props = GetPropertyTable(doc, "Model.FbxNode", element, sc);
75 ResolveLinks(element, doc);
76}
77
78// ------------------------------------------------------------------------------------------------
79void Model::ResolveLinks(const Element&, const Document &doc) {

Callers

nothing calls this directly

Calls 3

ParseTokenAsStringFunction · 0.85
GetPropertyTableFunction · 0.85
StringContentsMethod · 0.80

Tested by

no test coverage detected