#include <RWGltf_TriangulationReader.hxx>
+#include <RWGltf_GltfLatePrimitiveArray.hxx>
#include <RWMesh_CoordinateSystemConverter.hxx>
#include <Standard_ReadBuffer.hxx>
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 :
protected:
+ //! Load primitive array.
+ Standard_EXPORT virtual bool load (const Handle(RWGltf_GltfLatePrimitiveArray)& theMesh,
+ const Handle(OSD_FileSystem)& theFileSystem) Standard_OVERRIDE;
+
//! Create Poly_Triangulation from collected data
Standard_EXPORT virtual Handle(Poly_Triangulation) result() Standard_OVERRIDE;