OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKBool
TopOpeBRepTool


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.

Example of use :
TopTools_DataMapOfShapeListOfShape mymap;
TopOpeBRepTool_PurgeInternalEdges
mypurgealgo(mysolid); mypurgealgo.GetFaces(mymap);

#include <TopOpeBRepTool_PurgeInternalEdges.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT TopOpeBRepTool_PurgeInternalEdges (const TopoDS_Shape &theShape, const Standard_Boolean PerformNow=Standard_True)
 Initialize members and begin exploration of shape
depending of the value of PerformNow
.
Standard_EXPORT void Faces (TopTools_DataMapOfShapeListOfShape &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.

Standard_EXPORT TopoDS_Shape & Shape ()
 returns myShape modified with the list of internal
edges removed from it.

Standard_EXPORT const Standard_Integer NbEdges () const
 returns the number of edges candidate to be removed

Standard_Boolean IsDone () const
 returns False if the list of internal edges has
not been extracted

Standard_EXPORT void Perform ()
 Using the list of internal edge from each face,
rebuild myShape by removing thoses edges.

.

Protected Attributes

TopTools_IndexedDataMapOfShapeListOfShape myMapEdgLstFac

Private Member Functions

Standard_EXPORT void BuildList ()
 Do the main job. Explore all the edges of myShape and
build a map with faces as a key and list of internal
edges(without connected faces) as value.

.

Private Attributes

TopoDS_Shape myShape
Standard_Boolean myIsDone
TopTools_DataMapOfShapeListOfShape myMapFacLstEdg


Constructor & Destructor Documentation

Standard_EXPORT TopOpeBRepTool_PurgeInternalEdges::TopOpeBRepTool_PurgeInternalEdges const TopoDS_Shape &  theShape,
const Standard_Boolean  PerformNow = Standard_True
 


Member Function Documentation

Standard_EXPORT void TopOpeBRepTool_PurgeInternalEdges::BuildList  )  [private]
 

Standard_EXPORT void TopOpeBRepTool_PurgeInternalEdges::Faces TopTools_DataMapOfShapeListOfShape &  theMapFacLstEdg  ) 
 

Standard_Boolean TopOpeBRepTool_PurgeInternalEdges::IsDone  )  const [inline]
 

Standard_EXPORT const Standard_Integer TopOpeBRepTool_PurgeInternalEdges::NbEdges  )  const
 

void TopOpeBRepTool_PurgeInternalEdges::operator delete void *  anAddress  )  [inline]
 

void* TopOpeBRepTool_PurgeInternalEdges::operator new size_t  size  )  [inline]
 

void* TopOpeBRepTool_PurgeInternalEdges::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT void TopOpeBRepTool_PurgeInternalEdges::Perform  ) 
 

Standard_EXPORT TopoDS_Shape& TopOpeBRepTool_PurgeInternalEdges::Shape  ) 
 


Field Documentation

Standard_Boolean TopOpeBRepTool_PurgeInternalEdges::myIsDone [private]
 

TopTools_IndexedDataMapOfShapeListOfShape TopOpeBRepTool_PurgeInternalEdges::myMapEdgLstFac [protected]
 

TopTools_DataMapOfShapeListOfShape TopOpeBRepTool_PurgeInternalEdges::myMapFacLstEdg [private]
 

TopoDS_Shape TopOpeBRepTool_PurgeInternalEdges::myShape [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:43:07 2008 for OpenCASCADE by  doxygen 1.4.1