MCPcopy Create free account
hub / github.com/city-super/Octree-GS / parseMatID

Function parseMatID

SIBR_viewers/src/core/graphics/MaterialMesh.cpp:311–320  ·  view source on GitHub ↗

Extracts Name from (can accept node == nullptr)

Source from the content-addressed store, hash-verified

309 // Extracts Name from (can accept node == nullptr)
310 // <ref id="Name"/>
311 std::string parseMatID(const rapidxml::xml_node<>* node)
312 {
313 std::string res;
314 if (node)
315 {
316 const rapidxml::xml_attribute<>* id = node->first_attribute("id");
317 res = id->value();
318 }
319 return res;
320 }
321
322 bool shouldFlipNormals(const rapidxml::xml_node<>* shape)
323 {

Callers 1

loadMtsXMLMethod · 0.85

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected