------------------------------------------------------------------------------
| 1029 | |
| 1030 | //------------------------------------------------------------------------------ |
| 1031 | vtkSmartPointer<vtkGLTFTexture> vtkGLTFReader::GetTexture(vtkIdType textureIndex) |
| 1032 | { |
| 1033 | if (textureIndex < 0 || textureIndex >= static_cast<vtkIdType>(this->Textures.size())) |
| 1034 | { |
| 1035 | vtkErrorMacro("Out of range texture index"); |
| 1036 | vtkNew<vtkGLTFTexture> t; |
| 1037 | return t; |
| 1038 | } |
| 1039 | return this->Textures[textureIndex]; |
| 1040 | } |
| 1041 | |
| 1042 | //------------------------------------------------------------------------------ |
| 1043 | void vtkGLTFReader::SetScene(const std::string& scene) |