|
| | RWObj_CafWriter (const TCollection_AsciiString &theFile) |
| | Main constructor.
|
| |
| | ~RWObj_CafWriter () override |
| | Destructor.
|
| |
| const RWMesh_CoordinateSystemConverter & | CoordinateSystemConverter () const |
| | Return transformation from OCCT to OBJ coordinate system.
|
| |
| RWMesh_CoordinateSystemConverter & | ChangeCoordinateSystemConverter () |
| | Return transformation from OCCT to OBJ coordinate system.
|
| |
| void | SetCoordinateSystemConverter (const RWMesh_CoordinateSystemConverter &theConverter) |
| | Set transformation from OCCT to OBJ coordinate system.
|
| |
| const XCAFPrs_Style & | DefaultStyle () const |
| | Return default material definition to be used for nodes with only color defined.
|
| |
| void | SetDefaultStyle (const XCAFPrs_Style &theStyle) |
| | Set default material definition to be used for nodes with only color defined.
|
| |
| virtual bool | Perform (const occ::handle< TDocStd_Document > &theDocument, const NCollection_Sequence< TDF_Label > &theRootLabels, const NCollection_Map< TCollection_AsciiString > *theLabelFilter, const NCollection_IndexedDataMap< TCollection_AsciiString, TCollection_AsciiString > &theFileInfo, const Message_ProgressRange &theProgress) |
| | Write OBJ file and associated MTL material file. Triangulation data should be precomputed within shapes!
|
| |
| virtual bool | Perform (const occ::handle< TDocStd_Document > &theDocument, const NCollection_IndexedDataMap< TCollection_AsciiString, TCollection_AsciiString > &theFileInfo, const Message_ProgressRange &theProgress) |
| | Write OBJ file and associated MTL material file. Triangulation data should be precomputed within shapes!
|
| |
Public Member Functions inherited from Standard_Transient |
| | Standard_Transient () |
| | Empty constructor.
|
| |
| | Standard_Transient (const Standard_Transient &) |
| | Copy constructor – does nothing.
|
| |
| Standard_Transient & | operator= (const Standard_Transient &) |
| | Assignment operator, needed to avoid copying reference counter.
|
| |
| virtual | ~Standard_Transient ()=default |
| | Destructor must be virtual.
|
| |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| | Returns a type descriptor about this object.
|
| |
| bool | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| | Returns a true value if this is an instance of Type.
|
| |
| bool | IsInstance (const char *const theTypeName) const |
| | Returns a true value if this is an instance of TypeName.
|
| |
| bool | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| | Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| bool | IsKind (const char *const theTypeName) const |
| | Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| Standard_Transient * | This () const |
| | Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
|
| |
| int | GetRefCount () const noexcept |
| | Get the reference counter of this object.
|
| |
| void | IncrementRefCounter () noexcept |
| | Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
|
| |
| int | DecrementRefCounter () noexcept |
| | Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
|
| |
| virtual void | Delete () const |
| | Memory deallocator for transient classes.
|
| |
|
| virtual bool | toSkipFaceMesh (const RWMesh_FaceIterator &theFaceIter) |
| | Return TRUE if face mesh should be skipped (e.g. because it is invalid or empty).
|
| |
| virtual void | addFaceInfo (const RWMesh_FaceIterator &theFace, int &theNbNodes, int &theNbElems, double &theNbProgressSteps, bool &theToCreateMatFile) |
| | Collect face triangulation info.
|
| |
| virtual bool | writeShape (RWObj_ObjWriterContext &theWriter, RWObj_ObjMaterialMap &theMatMgr, Message_LazyProgressScope &thePSentry, const TDF_Label &theLabel, const TopLoc_Location &theParentTrsf, const XCAFPrs_Style &theParentStyle, const TCollection_AsciiString &theName) |
| | Write the shape.
|
| |
| virtual bool | writePositions (RWObj_ObjWriterContext &theWriter, Message_LazyProgressScope &thePSentry, const RWMesh_FaceIterator &theFace) |
| | Write face triangle vertex positions.
|
| |
| virtual bool | writeNormals (RWObj_ObjWriterContext &theWriter, Message_LazyProgressScope &thePSentry, const RWMesh_FaceIterator &theFace) |
| | Write face triangle vertex normals.
|
| |
| virtual bool | writeTextCoords (RWObj_ObjWriterContext &theWriter, Message_LazyProgressScope &thePSentry, const RWMesh_FaceIterator &theFace) |
| | Write face triangle vertex texture coordinates.
|
| |
| virtual bool | writeIndices (RWObj_ObjWriterContext &theWriter, Message_LazyProgressScope &thePSentry, const RWMesh_FaceIterator &theFace) |
| | Write face triangles indices.
|
| |
OBJ writer context from XCAF document.
Collect face triangulation info.
- Parameters
-
| [in] | theFace | face to process |
| [in] | | |
out] theNbNodes overall number of triangulation nodes (should be appended)
- Parameters
-
out] theNbElems overall number of triangulation elements (should be appended)
- Parameters
-
out] theNbProgressSteps overall number of progress steps (should be appended)
- Parameters
-
out] theToCreateMatFile flag to create material file or not (should be appended)