Auxiliary tool for merging triangulation nodes for visualization purposes. Tool tries to merge all nodes within input triangulation, but split the ones on sharp corners at specified angle.
More...
|
| | Poly_MergeNodesTool (const double theSmoothAngle, const double theMergeTolerance=0.0, const int theNbFacets=-1) |
| | Constructor.
|
| |
| double | MergeTolerance () const |
| | Return merge tolerance; 0.0 by default (only 3D points with exactly matching coordinates are merged).
|
| |
| void | SetMergeTolerance (double theTolerance) |
| | Set merge tolerance.
|
| |
| double | MergeAngle () const |
| | Return merge angle in radians; 0.0 by default (normals with non-exact directions are not merged).
|
| |
| void | SetMergeAngle (double theAngleRad) |
| | Set merge angle.
|
| |
| bool | ToMergeOpposite () const |
| | Return TRUE if nodes with opposite normals should be merged; FALSE by default.
|
| |
| void | SetMergeOpposite (bool theToMerge) |
| | Set if nodes with opposite normals should be merged.
|
| |
| void | SetUnitFactor (double theUnitFactor) |
| | Setup unit factor.
|
| |
| bool | ToDropDegenerative () const |
| | Return TRUE if degenerate elements should be discarded; TRUE by default.
|
| |
| void | SetDropDegenerative (bool theToDrop) |
| | Set if degenerate elements should be discarded.
|
| |
| bool | ToMergeElems () const |
| | Return TRUE if equal elements should be filtered; FALSE by default.
|
| |
| void | SetMergeElems (bool theToMerge) |
| | Set if equal elements should be filtered.
|
| |
| NCollection_Vec3< float > | computeTriNormal () const |
| | Compute normal for the mesh element.
|
| |
| virtual void | AddTriangulation (const occ::handle< Poly_Triangulation > &theTris, const gp_Trsf &theTrsf=gp_Trsf(), const bool theToReverse=false) |
| | Add another triangulation to created one.
|
| |
| occ::handle< Poly_Triangulation > | Result () |
| | Prepare and return result triangulation (temporary data will be truncated to result size).
|
| |
| void | AddTriangle (const gp_XYZ theElemNodes[3]) |
| | Add new triangle.
|
| |
| void | AddQuad (const gp_XYZ theElemNodes[4]) |
| | Add new quad.
|
| |
| void | AddElement (const gp_XYZ *theElemNodes, int theNbNodes) |
| | Add new triangle or quad.
|
| |
| gp_XYZ & | ChangeElementNode (int theIndex) |
| | Change node coordinates of element to be pushed.
|
| |
| void | PushLastElement (int theNbNodes) |
| | Add new triangle or quad with nodes specified by ChangeElementNode().
|
| |
| void | PushLastTriangle () |
| | Add new triangle with nodes specified by ChangeElementNode().
|
| |
| void | PushLastQuad () |
| | Add new quad with nodes specified by ChangeElementNode().
|
| |
| int | ElementNodeIndex (int theIndex) const |
| | Return current element node index defined by PushLastElement().
|
| |
| int | NbNodes () const |
| | Return number of nodes.
|
| |
| int | NbElements () const |
| | Return number of elements.
|
| |
| int | NbDegenerativeElems () const |
| | Return number of discarded degenerate elements.
|
| |
| int | NbMergedElems () const |
| | Return number of merged equal elements.
|
| |
| occ::handle< Poly_Triangulation > & | ChangeOutput () |
| | Setup output triangulation for modifications. When set to NULL, the tool could be used as a merge map for filling in external mesh structure.
|
| |
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.
|
| |
Auxiliary tool for merging triangulation nodes for visualization purposes. Tool tries to merge all nodes within input triangulation, but split the ones on sharp corners at specified angle.