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:
@@ -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
|
||||
|
Reference in New Issue
Block a user