Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BRepMesh_VertexTool Class Reference

Describes data structure intended to keep mesh nodes defined in UV space and implements functionality providing their uniqueness regarding their position. More...

#include <BRepMesh_VertexTool.hxx>

Inheritance diagram for BRepMesh_VertexTool:
Inheritance graph
[legend]

Public Member Functions

 BRepMesh_VertexTool (const occ::handle< NCollection_IncAllocator > &theAllocator)
 Constructor.
 
void SetCellSize (const double theSize)
 Sets new size of cell for cellfilter equal in both directions.
 
void SetCellSize (const double theSizeX, const double theSizeY)
 Sets new size of cell for cellfilter.
 
void SetTolerance (const double theTolerance)
 Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
 
void SetTolerance (const double theToleranceX, const double theToleranceY)
 Sets the tolerance to be used for identification of coincident vertices.
 
void GetTolerance (double &theToleranceX, double &theToleranceY)
 Gets the tolerance to be used for identification of coincident vertices.
 
int Add (const BRepMesh_Vertex &theVertex, const bool isForceAdd)
 Adds vertex with empty data to the tool.
 
void DeleteVertex (const int theIndex)
 Deletes vertex with the given index from the tool.
 
const Handle< IMeshData::VectorOfVertex > & Vertices () const
 Returns set of mesh vertices.
 
Handle< IMeshData::VectorOfVertex > & ChangeVertices ()
 Returns set of mesh vertices.
 
const BRepMesh_VertexFindKey (const int theIndex)
 Returns vertex by the given index.
 
int FindIndex (const BRepMesh_Vertex &theVertex)
 Returns index of the given vertex.
 
int Extent () const
 Returns a number of vertices.
 
bool IsEmpty () const
 Returns True when the map contains no keys.
 
void Substitute (const int theIndex, const BRepMesh_Vertex &theVertex)
 Substitutes vertex with the given by the given vertex with attributes.
 
void RemoveLast ()
 Remove last node from the structure.
 
const IMeshData::ListOfIntegerGetListOfDelNodes () const
 Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (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_TransientThis () 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.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 

Detailed Description

Describes data structure intended to keep mesh nodes defined in UV space and implements functionality providing their uniqueness regarding their position.

Constructor & Destructor Documentation

◆ BRepMesh_VertexTool()

BRepMesh_VertexTool::BRepMesh_VertexTool ( const occ::handle< NCollection_IncAllocator > & theAllocator)

Constructor.

Parameters
theAllocatormemory allocator to be used by internal collections.

Member Function Documentation

◆ Add()

int BRepMesh_VertexTool::Add ( const BRepMesh_Vertex & theVertex,
const bool isForceAdd )

Adds vertex with empty data to the tool.

Parameters
theVertexnode to be added to the mesh.
isForceAddadds the given node to structure without checking on coincidence with other nodes.
Returns
index of the node in the structure.

◆ ChangeVertices()

Handle< IMeshData::VectorOfVertex > & BRepMesh_VertexTool::ChangeVertices ( )
inline

Returns set of mesh vertices.

◆ DeleteVertex()

void BRepMesh_VertexTool::DeleteVertex ( const int theIndex)

Deletes vertex with the given index from the tool.

◆ Extent()

int BRepMesh_VertexTool::Extent ( ) const
inline

Returns a number of vertices.

◆ FindIndex()

int BRepMesh_VertexTool::FindIndex ( const BRepMesh_Vertex & theVertex)
inline

Returns index of the given vertex.

◆ FindKey()

const BRepMesh_Vertex & BRepMesh_VertexTool::FindKey ( const int theIndex)
inline

Returns vertex by the given index.

◆ GetListOfDelNodes()

const IMeshData::ListOfInteger & BRepMesh_VertexTool::GetListOfDelNodes ( ) const
inline

Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.

◆ GetTolerance()

void BRepMesh_VertexTool::GetTolerance ( double & theToleranceX,
double & theToleranceY )
inline

Gets the tolerance to be used for identification of coincident vertices.

Parameters
theToleranceXtolerance for X dimension.
theToleranceYtolerance for Y dimension.

◆ IsEmpty()

bool BRepMesh_VertexTool::IsEmpty ( ) const
inline

Returns True when the map contains no keys.

◆ RemoveLast()

void BRepMesh_VertexTool::RemoveLast ( )
inline

Remove last node from the structure.

◆ SetCellSize() [1/2]

void BRepMesh_VertexTool::SetCellSize ( const double theSize)
inline

Sets new size of cell for cellfilter equal in both directions.

◆ SetCellSize() [2/2]

void BRepMesh_VertexTool::SetCellSize ( const double theSizeX,
const double theSizeY )
inline

Sets new size of cell for cellfilter.

Parameters
theSizeXsize for X dimension.
theSizeYsize for Y dimension.

◆ SetTolerance() [1/2]

void BRepMesh_VertexTool::SetTolerance ( const double theTolerance)
inline

Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.

◆ SetTolerance() [2/2]

void BRepMesh_VertexTool::SetTolerance ( const double theToleranceX,
const double theToleranceY )
inline

Sets the tolerance to be used for identification of coincident vertices.

Parameters
theToleranceXtolerance for X dimension.
theToleranceYtolerance for Y dimension.

◆ Substitute()

void BRepMesh_VertexTool::Substitute ( const int theIndex,
const BRepMesh_Vertex & theVertex )

Substitutes vertex with the given by the given vertex with attributes.

Parameters
theIndexindex of vertex to be substituted.
theVertexreplacement vertex.

◆ Vertices()

const Handle< IMeshData::VectorOfVertex > & BRepMesh_VertexTool::Vertices ( ) const
inline

Returns set of mesh vertices.


The documentation for this class was generated from the following file: