MCPcopy Create free account
hub / github.com/Kitware/VTK / LoadNodeExtensions

Method LoadNodeExtensions

IO/Geometry/vtkGLTFDocumentLoaderInternals.cxx:1675–1690  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1673
1674//------------------------------------------------------------------------------
1675bool vtkGLTFDocumentLoaderInternals::LoadNodeExtensions(
1676 const nlohmann::json& root, vtkGLTFDocumentLoader::Node::Extensions& nodeExtensions)
1677{
1678 auto rootLightsPunctualIt = root.find("KHR_lights_punctual");
1679 for (const std::string& usedExtensionName : this->Self->GetUsedExtensions())
1680 {
1681 if (usedExtensionName == "KHR_lights_punctual" && rootLightsPunctualIt != root.end() &&
1682 rootLightsPunctualIt.value().is_object())
1683 {
1684 this->LoadKHRLightsPunctualNodeExtension(
1685 rootLightsPunctualIt.value(), nodeExtensions.KHRLightsPunctualMetaData);
1686 }
1687 // New node extensions should be loaded from here
1688 }
1689 return true;
1690}
1691
1692//------------------------------------------------------------------------------
1693bool vtkGLTFDocumentLoaderInternals::LoadExtensions(

Callers 1

LoadNodeMethod · 0.95

Calls 4

findMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected