OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    TopOpeBRepTool_PurgeInternalEdges Class Reference

    remove from a shape, the internal edges that are not connected to any face in the shape. We can get the list of the edges as a DataMapOfShapeListOfShape with a Face of the Shape as the key and a list of internal edges as the value. The list of internal edges means edges that are not connected to any face in the shape. More...

    #include <TopOpeBRepTool_PurgeInternalEdges.hxx>

    Public Member Functions

     TopOpeBRepTool_PurgeInternalEdges (const TopoDS_Shape &theShape, const bool PerformNow=true)
     Initialize members and begin exploration of shape depending of the value of PerformNow.
    void Faces (NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &theMapFacLstEdg)
     returns the list internal edges associated with the faces of the myShape. If PerformNow was False when created, then call the private Perform method that do the main job.
    TopoDS_ShapeShape ()
     returns myShape modified with the list of internal edges removed from it.
    int NbEdges () const
     returns the number of edges candidate to be removed
    bool IsDone () const
     returns False if the list of internal edges has not been extracted
    void Perform ()
     Using the list of internal edges from each face, rebuild myShape by removing those edges.

    Protected Attributes

    NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyMapEdgLstFac

    Detailed Description

    remove from a shape, the internal edges that are not connected to any face in the shape. We can get the list of the edges as a DataMapOfShapeListOfShape with a Face of the Shape as the key and a list of internal edges as the value. The list of internal edges means edges that are not connected to any face in the shape.

    Example of use: NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> mymap; TopOpeBRepTool_PurgeInternalEdges mypurgealgo(mysolid); mypurgealgo.GetFaces(mymap);

    Constructor & Destructor Documentation

    ◆ TopOpeBRepTool_PurgeInternalEdges()

    TopOpeBRepTool_PurgeInternalEdges::TopOpeBRepTool_PurgeInternalEdges ( const TopoDS_Shape & theShape,
    const bool PerformNow = true )

    Initialize members and begin exploration of shape depending of the value of PerformNow.

    Member Function Documentation

    ◆ Faces()

    void TopOpeBRepTool_PurgeInternalEdges::Faces ( NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & theMapFacLstEdg)

    returns the list internal edges associated with the faces of the myShape. If PerformNow was False when created, then call the private Perform method that do the main job.

    ◆ IsDone()

    bool TopOpeBRepTool_PurgeInternalEdges::IsDone ( ) const
    inline

    returns False if the list of internal edges has not been extracted

    ◆ NbEdges()

    int TopOpeBRepTool_PurgeInternalEdges::NbEdges ( ) const

    returns the number of edges candidate to be removed

    ◆ Perform()

    void TopOpeBRepTool_PurgeInternalEdges::Perform ( )

    Using the list of internal edges from each face, rebuild myShape by removing those edges.

    ◆ Shape()

    TopoDS_Shape & TopOpeBRepTool_PurgeInternalEdges::Shape ( )

    returns myShape modified with the list of internal edges removed from it.

    Field Documentation

    ◆ myMapEdgLstFac

    NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> TopOpeBRepTool_PurgeInternalEdges::myMapEdgLstFac
    protected

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