1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030953: Data Exchange - implement export of mesh data into glTF 2.0 format

Added new class RWGltf_CafWriter for exporting XCAF document into glTF file
as well as Draw Harness command WriteGltf.

Added auxiliary method OSD_Path::FileNameAndExtension() splitting file name into Name and Extension.
This commit is contained in:
kgv
2019-11-19 02:09:09 +03:00
committed by bugmaster
parent df8c7e3e18
commit 01b2f506d6
26 changed files with 3620 additions and 12 deletions

View File

@@ -34,6 +34,23 @@ struct XCAFPrs_DocumentNode
Standard_Boolean IsAssembly; //!< flag indicating that this label is assembly
XCAFPrs_DocumentNode() : IsAssembly (Standard_False) {}
public: // Methods for hash map
//! Return hash code based on node string identifier.
static Standard_Integer HashCode (const XCAFPrs_DocumentNode& theNode,
const Standard_Integer theN)
{
return ::HashCode (theNode.Id, theN);
}
//! Return TRUE if two document nodes has the same string identifier.
static Standard_Boolean IsEqual (const XCAFPrs_DocumentNode& theNode1,
const XCAFPrs_DocumentNode& theNode2)
{
return theNode1.Id == theNode2.Id;
}
};
#endif // _XCAFPrs_DocumentNode_HeaderFile