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

ModelingAlgorithms
TKShHealing
ShapeAnalysis


ShapeAnalysis_Shell Class Reference

This class provides operators to analyze edges orientation
in the shell.
.

#include <ShapeAnalysis_Shell.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT void Clear ()
 Clears data about loaded shells and performed checks
.
Standard_EXPORT void LoadShells (const TopoDS_Shape &shape)
 Adds shells contained in the <shape> to the list of loaded shells
.
Standard_EXPORT Standard_Boolean CheckOrientedShells (const TopoDS_Shape &shape, const Standard_Boolean alsofree=Standard_False)
 Checks if shells fulfill orientation condition, i.e. if each
edge is, either present once (free edge) or twice (connected
edge) but with different orientations (FORWARD/REVERSED)
Edges which do not fulfill these conditions are bad

If <alsofree> is True free edges are considered.
Free edges can be queried but are not bad
.
Standard_EXPORT Standard_Boolean IsLoaded (const TopoDS_Shape &shape) const
 Tells if a shape is loaded (only shells are checked)
.
Standard_EXPORT Standard_Integer NbLoaded () const
 Returns the actual number of loaded shapes (i.e. shells)
.
Standard_EXPORT TopoDS_Shape Loaded (const Standard_Integer num) const
 Returns a loaded shape specified by its rank number.
Returns null shape if <num> is out of range
.
Standard_EXPORT Standard_Boolean HasBadEdges () const
 Tells if at least one edge is recorded as bad
.
Standard_EXPORT TopoDS_Compound BadEdges () const
 Returns the list of bad edges as a Compound
It is empty (not null) if no edge are recorded as bad
.
Standard_EXPORT Standard_Boolean HasFreeEdges () const
 Tells if at least one edge is recorded as free (not connected)
.
Standard_EXPORT TopoDS_Compound FreeEdges () const
 Returns the list of free (not connected) edges as a Compound
It is empty (not null) if no edge are recorded as free
.
Standard_EXPORT Standard_Boolean HasConnectedEdges () const
 Tells if at least one edge is connected (shared twice or more)
.

Private Attributes

TopTools_IndexedMapOfShape myShells
TopTools_IndexedMapOfShape myBad
TopTools_IndexedMapOfShape myFree
Standard_Boolean myConex


Member Function Documentation

Standard_EXPORT TopoDS_Compound ShapeAnalysis_Shell::BadEdges  )  const
 

Standard_EXPORT Standard_Boolean ShapeAnalysis_Shell::CheckOrientedShells const TopoDS_Shape &  shape,
const Standard_Boolean  alsofree = Standard_False
 

Standard_EXPORT void ShapeAnalysis_Shell::Clear  ) 
 

Standard_EXPORT TopoDS_Compound ShapeAnalysis_Shell::FreeEdges  )  const
 

Standard_EXPORT Standard_Boolean ShapeAnalysis_Shell::HasBadEdges  )  const
 

Standard_EXPORT Standard_Boolean ShapeAnalysis_Shell::HasConnectedEdges  )  const
 

Standard_EXPORT Standard_Boolean ShapeAnalysis_Shell::HasFreeEdges  )  const
 

Standard_EXPORT Standard_Boolean ShapeAnalysis_Shell::IsLoaded const TopoDS_Shape &  shape  )  const
 

Standard_EXPORT TopoDS_Shape ShapeAnalysis_Shell::Loaded const Standard_Integer  num  )  const
 

Standard_EXPORT void ShapeAnalysis_Shell::LoadShells const TopoDS_Shape &  shape  ) 
 

Standard_EXPORT Standard_Integer ShapeAnalysis_Shell::NbLoaded  )  const
 

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

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

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


Field Documentation

TopTools_IndexedMapOfShape ShapeAnalysis_Shell::myBad [private]
 

Standard_Boolean ShapeAnalysis_Shell::myConex [private]
 

TopTools_IndexedMapOfShape ShapeAnalysis_Shell::myFree [private]
 

TopTools_IndexedMapOfShape ShapeAnalysis_Shell::myShells [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:34 2008 for OpenCASCADE by  doxygen 1.4.1