Open CASCADE Technology  7.4.0
Public Types | Public Member Functions | Static Public Member Functions
BRepMesh_VertexInspector Class Reference

Class intended for fast searching of the coincidence points. More...

#include <BRepMesh_VertexInspector.hxx>

Inheritance diagram for BRepMesh_VertexInspector:
Inheritance graph
[legend]

Public Types

typedef Standard_Integer Target
 
- Public Types inherited from NCollection_CellFilter_InspectorXY
enum  { Dimension = 2 }
 Points dimension. More...
 
typedef gp_XY Point
 Points type. More...
 

Public Member Functions

 BRepMesh_VertexInspector (const Handle< NCollection_IncAllocator > &theAllocator)
 Constructor. More...
 
Standard_Integer Add (const BRepMesh_Vertex &theVertex)
 Registers the given vertex. 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 Clear ()
 Clear inspector's internal data structures. More...
 
void Delete (const Standard_Integer theIndex)
 Deletes vertex with the given index. More...
 
Standard_Integer NbVertices () const
 Returns number of registered vertices. More...
 
BRepMesh_VertexGetVertex (Standard_Integer theIndex)
 Returns vertex with the given index. More...
 
void SetPoint (const gp_XY &thePoint)
 Set reference point to be checked. More...
 
Standard_Integer GetCoincidentPoint () const
 Returns index of point coinciding with regerence one. More...
 
const IMeshData::ListOfIntegerGetListOfDelPoints () const
 Returns list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node. More...
 
const Handle< IMeshData::VectorOfVertex > & Vertices () const
 Returns set of mesh vertices. More...
 
Handle< IMeshData::VectorOfVertex > & ChangeVertices ()
 Returns set of mesh vertices for modification. More...
 
NCollection_CellFilter_Action Inspect (const Standard_Integer theTargetIndex)
 Performs inspection of a point with the given index. More...
 
- Public Member Functions inherited from NCollection_CellFilter_InspectorXY
Point Shift (const Point &thePnt, Standard_Real theTol) const
 Auxiliary method to shift point by each coordinate on given value; useful for preparing a points range for Inspect with tolerance. More...
 

Static Public Member Functions

static Standard_Boolean IsEqual (const Standard_Integer theIndex, const Standard_Integer theTargetIndex)
 Checks indices for equlity. More...
 
- Static Public Member Functions inherited from NCollection_CellFilter_InspectorXY
static Standard_Real Coord (int i, const Point &thePnt)
 Access to co-ordinate. More...
 

Detailed Description

Class intended for fast searching of the coincidence points.

Member Typedef Documentation

◆ Target

Constructor & Destructor Documentation

◆ BRepMesh_VertexInspector()

BRepMesh_VertexInspector::BRepMesh_VertexInspector ( const Handle< NCollection_IncAllocator > &  theAllocator)
inline

Constructor.

Parameters
theAllocatormemory allocator to be used by internal collections.

Member Function Documentation

◆ Add()

Standard_Integer BRepMesh_VertexInspector::Add ( const BRepMesh_Vertex theVertex)
inline

Registers the given vertex.

Parameters
theVertexvertex to be registered.

◆ ChangeVertices()

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

Returns set of mesh vertices for modification.

◆ Clear()

void BRepMesh_VertexInspector::Clear ( )
inline

Clear inspector's internal data structures.

◆ Delete()

void BRepMesh_VertexInspector::Delete ( const Standard_Integer  theIndex)
inline

Deletes vertex with the given index.

Parameters
theIndexindex of vertex to be removed.

◆ GetCoincidentPoint()

Standard_Integer BRepMesh_VertexInspector::GetCoincidentPoint ( ) const
inline

Returns index of point coinciding with regerence one.

◆ GetListOfDelPoints()

const IMeshData::ListOfInteger& BRepMesh_VertexInspector::GetListOfDelPoints ( ) const
inline

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

◆ GetVertex()

BRepMesh_Vertex& BRepMesh_VertexInspector::GetVertex ( Standard_Integer  theIndex)
inline

Returns vertex with the given index.

◆ Inspect()

NCollection_CellFilter_Action BRepMesh_VertexInspector::Inspect ( const Standard_Integer  theTargetIndex)

Performs inspection of a point with the given index.

Parameters
theTargetIndexindex of a circle to be checked.
Returns
status of the check.

◆ IsEqual()

static Standard_Boolean BRepMesh_VertexInspector::IsEqual ( const Standard_Integer  theIndex,
const Standard_Integer  theTargetIndex 
)
inlinestatic

Checks indices for equlity.

◆ NbVertices()

Standard_Integer BRepMesh_VertexInspector::NbVertices ( ) const
inline

Returns number of registered vertices.

◆ SetPoint()

void BRepMesh_VertexInspector::SetPoint ( const gp_XY thePoint)
inline

Set reference point to be checked.

◆ SetTolerance() [1/2]

void BRepMesh_VertexInspector::SetTolerance ( const Standard_Real  theTolerance)
inline

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

◆ SetTolerance() [2/2]

void BRepMesh_VertexInspector::SetTolerance ( const Standard_Real  theToleranceX,
const Standard_Real  theToleranceY 
)
inline

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

Parameters
theToleranceXtolerance for X dimension.
theToleranceYtolerance for Y dimension.

◆ Vertices()

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

Returns set of mesh vertices.


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