OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepMesh_VertexInspector Class Reference

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

    #include <BRepMesh_VertexInspector.hxx>

    Public Types

    typedef gp_XY Point
    typedef int Target

    Public Member Functions

     BRepMesh_VertexInspector (const occ::handle< NCollection_IncAllocator > &theAllocator)
     Constructor.
    int Add (const BRepMesh_Vertex &theVertex)
     Registers the given vertex.
    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 Clear ()
     Clear inspector's internal data structures.
    void Delete (const int theIndex)
     Deletes vertex with the given index.
    int NbVertices () const
     Returns number of registered vertices.
    BRepMesh_Vertex & GetVertex (int theIndex)
     Returns vertex with the given index.
    void SetPoint (const gp_XY &thePoint)
     Set reference point to be checked.
    int GetCoincidentPoint () const
     Returns index of point coinciding with regerence one.
    const IMeshData::ListOfInteger & GetListOfDelPoints () const
     Returns list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
    const Handle< IMeshData::VectorOfVertex > & Vertices () const
     Returns set of mesh vertices.
    Handle< IMeshData::VectorOfVertex > & ChangeVertices ()
     Returns set of mesh vertices for modification.
    NCollection_CellFilter_Action Inspect (const int theTargetIndex)
     Performs inspection of a point with the given index.

    Static Public Member Functions

    static double Coord (int i, const Point &thePnt)
    static Point Shift (const Point &thePnt, double theTol)
    static bool IsEqual (const int theIndex, const int theTargetIndex)
     Checks indices for equality.

    Static Public Attributes

    static constexpr int Dimension = 2

    Detailed Description

    Class intended for fast searching of the coincidence points.

    Member Typedef Documentation

    ◆ Point

    ◆ Target

    Constructor & Destructor Documentation

    ◆ BRepMesh_VertexInspector()

    BRepMesh_VertexInspector::BRepMesh_VertexInspector ( const occ::handle< NCollection_IncAllocator > & theAllocator)
    inline

    Constructor.

    Parameters
    theAllocatormemory allocator to be used by internal collections.

    Member Function Documentation

    ◆ Add()

    int 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.

    ◆ Coord()

    double BRepMesh_VertexInspector::Coord ( int i,
    const Point & thePnt )
    inlinestatic

    ◆ Delete()

    void BRepMesh_VertexInspector::Delete ( const int theIndex)
    inline

    Deletes vertex with the given index.

    Parameters
    theIndexindex of vertex to be removed.

    ◆ GetCoincidentPoint()

    int 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 ( int theIndex)
    inline

    Returns vertex with the given index.

    ◆ Inspect()

    NCollection_CellFilter_Action BRepMesh_VertexInspector::Inspect ( const int theTargetIndex)

    Performs inspection of a point with the given index.

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

    ◆ IsEqual()

    bool BRepMesh_VertexInspector::IsEqual ( const int theIndex,
    const int theTargetIndex )
    inlinestatic

    Checks indices for equality.

    ◆ NbVertices()

    int 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 double 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 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.

    ◆ Shift()

    Point BRepMesh_VertexInspector::Shift ( const Point & thePnt,
    double theTol )
    inlinestatic

    ◆ Vertices()

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

    Returns set of mesh vertices.

    Field Documentation

    ◆ Dimension

    int BRepMesh_VertexInspector::Dimension = 2
    staticconstexpr

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