X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FRWGltf%2FRWGltf_TriangulationReader.cxx;h=25c75340e3fa5b448cfa903b60244a3acc76c87e;hb=bc0711a5c3c2c9a627834136e10b13a8564c5a00;hpb=53219061cab102542849ce9189813642c5983d3a diff --git a/src/RWGltf/RWGltf_TriangulationReader.cxx b/src/RWGltf/RWGltf_TriangulationReader.cxx index de4db86d8a..25c75340e3 100644 --- a/src/RWGltf/RWGltf_TriangulationReader.cxx +++ b/src/RWGltf/RWGltf_TriangulationReader.cxx @@ -14,6 +14,7 @@ #include +#include #include #include @@ -85,6 +86,24 @@ Handle(Poly_Triangulation) RWGltf_TriangulationReader::result() return myTriangulation; } +// ======================================================================= +// function : load +// purpose : +// ======================================================================= +bool RWGltf_TriangulationReader::load (const Handle(RWGltf_GltfLatePrimitiveArray)& theMesh, + const Handle(OSD_FileSystem)& theFileSystem) +{ + if (!RWGltf_PrimitiveArrayReader::load (theMesh, theFileSystem)) + { + return false; + } + if (!theMesh->CachedMinMax().IsVoid()) + { + myTriangulation->SetCachedMinMax (theMesh->CachedMinMax()); + } + return true; +} + // ======================================================================= // function : readBuffer // purpose :