------------------------------------------------------------------------------
| 1130 | |
| 1131 | //------------------------------------------------------------------------------ |
| 1132 | bool 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 | //------------------------------------------------------------------------------ |
| 1152 | bool vtkGLTFDocumentLoaderInternals::LoadSkin( |
no test coverage detected