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

Method LoadScene

IO/Geometry/vtkGLTFDocumentLoaderInternals.cxx:1132–1149  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1130
1131//------------------------------------------------------------------------------
1132bool vtkGLTFDocumentLoaderInternals::LoadScene(
1133 const nlohmann::json& root, vtkGLTFDocumentLoader::Scene& scene)
1134{
1135 if (root.empty() || !root.is_object())
1136 {
1137 vtkErrorWithObjectMacro(this->Self, "Invalid scene object");
1138 return false;
1139 }
1140 if (!vtkGLTFUtils::GetUIntArray(root, "nodes", scene.Nodes))
1141 {
1142 scene.Nodes.clear();
1143 }
1144
1145 scene.Name = "";
1146 vtkGLTFUtils::GetStringValue(root, "name", scene.Name);
1147
1148 return true;
1149}
1150
1151//------------------------------------------------------------------------------
1152bool vtkGLTFDocumentLoaderInternals::LoadSkin(

Callers 1

LoadModelMetaDataMethod · 0.95

Calls 4

GetUIntArrayFunction · 0.70
GetStringValueFunction · 0.70
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected