Open CASCADE Technology
7.4.0
|
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>
Public Member Functions | |
BRepMesh_VertexTool (const Handle< NCollection_IncAllocator > &theAllocator) | |
Constructor. More... | |
void | SetCellSize (const Standard_Real theSize) |
Sets new size of cell for cellfilter equal in both directions. More... | |
void | SetCellSize (const Standard_Real theSizeX, const Standard_Real theSizeY) |
Sets new size of cell for cellfilter. More... | |
void | SetTolerance (const Standard_Real theTolerance) |
Sets the tolerance to be used for identification of coincident vertices equal for both dimensions. More... | |
void | SetTolerance (const Standard_Real theToleranceX, const Standard_Real theToleranceY) |
Sets the tolerance to be used for identification of coincident vertices. More... | |
void | GetTolerance (Standard_Real &theToleranceX, Standard_Real &theToleranceY) |
Gets the tolerance to be used for identification of coincident vertices. More... | |
Standard_Integer | Add (const BRepMesh_Vertex &theVertex, const Standard_Boolean isForceAdd) |
Adds vertex with empty data to the tool. More... | |
void | DeleteVertex (const Standard_Integer theIndex) |
Deletes vertex with the given index from the tool. More... | |
const Handle< IMeshData::VectorOfVertex > & | Vertices () const |
Returns set of mesh vertices. More... | |
Handle< IMeshData::VectorOfVertex > & | ChangeVertices () |
Returns set of mesh vertices. More... | |
const BRepMesh_Vertex & | FindKey (const Standard_Integer theIndex) |
Returns vertex by the given index. More... | |
Standard_Integer | FindIndex (const BRepMesh_Vertex &theVertex) |
Returns index of the given vertex. More... | |
Standard_Integer | Extent () const |
Returns a number of vertices. More... | |
Standard_Boolean | IsEmpty () const |
Returns True when the map contains no keys. More... | |
void | Substitute (const Standard_Integer theIndex, const BRepMesh_Vertex &theVertex) |
Substitutes vertex with the given by the given vertex with attributes. More... | |
void | RemoveLast () |
Remove last node from the structure. More... | |
const IMeshData::ListOfInteger & | GetListOfDelNodes () const |
Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node. More... | |
void | Statistics (Standard_OStream &theStream) const |
Prints statistics. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
Standard_Boolean | 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. More... | |
Standard_Boolean | IsKind (const Standard_CString 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. More... | |
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. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
Describes data structure intended to keep mesh nodes defined in UV space and implements functionality providing their uniqueness regarding their position.
BRepMesh_VertexTool::BRepMesh_VertexTool | ( | const Handle< NCollection_IncAllocator > & | theAllocator | ) |
Constructor.
theAllocator | memory allocator to be used by internal collections. |
Standard_Integer BRepMesh_VertexTool::Add | ( | const BRepMesh_Vertex & | theVertex, |
const Standard_Boolean | isForceAdd | ||
) |
Adds vertex with empty data to the tool.
theVertex | node to be added to the mesh. |
isForceAdd | adds the given node to structure without checking on coincidence with other nodes. |
|
inline |
Returns set of mesh vertices.
void BRepMesh_VertexTool::DeleteVertex | ( | const Standard_Integer | theIndex | ) |
Deletes vertex with the given index from the tool.
|
inline |
Returns a number of vertices.
|
inline |
Returns index of the given vertex.
|
inline |
Returns vertex by the given index.
|
inline |
Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
|
inline |
Gets the tolerance to be used for identification of coincident vertices.
theToleranceX | tolerance for X dimension. |
theToleranceY | tolerance for Y dimension. |
|
inline |
Returns True when the map contains no keys.
|
inline |
Remove last node from the structure.
|
inline |
Sets new size of cell for cellfilter equal in both directions.
|
inline |
Sets new size of cell for cellfilter.
theSizeX | size for X dimension. |
theSizeY | size for Y dimension. |
|
inline |
Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
|
inline |
Sets the tolerance to be used for identification of coincident vertices.
theToleranceX | tolerance for X dimension. |
theToleranceY | tolerance for Y dimension. |
void BRepMesh_VertexTool::Statistics | ( | Standard_OStream & | theStream | ) | const |
Prints statistics.
void BRepMesh_VertexTool::Substitute | ( | const Standard_Integer | theIndex, |
const BRepMesh_Vertex & | theVertex | ||
) |
Substitutes vertex with the given by the given vertex with attributes.
theIndex | index of vertex to be substituted. |
theVertex | replacement vertex. |
|
inline |
Returns set of mesh vertices.