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

ModelingAlgorithms
TKShHealing
ShapeUpgrade


ShapeUpgrade_RemoveInternalWires Class Reference

Removes all internal wires having area less than specified min area
.

#include <ShapeUpgrade_RemoveInternalWires.hxx>

Inheritance diagram for ShapeUpgrade_RemoveInternalWires:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeUpgrade_RemoveInternalWires ()
 Creates empty constructor.
.
Standard_EXPORT ShapeUpgrade_RemoveInternalWires (const TopoDS_Shape &theShape)
Standard_EXPORT void Init (const TopoDS_Shape &theShape)
 Initialize by a Shape.
.
Standard_EXPORT Standard_Boolean Perform ()
 Removes all internal wires having area less than area specified as minimal allowed area
.
Standard_EXPORT Standard_Boolean Perform (const TopTools_SequenceOfShape &theSeqShapes)
 If specified sequence of shape contains -
1.wires then these wires will be removed if they have area less than allowed min area.
2.faces than internal wires from these faces will be removed if they have area less than allowed min area.
.
TopoDS_Shape GetResult () const
 Get result shape
.
Standard_Real & MinArea ()
 Set min area allowed for holes( all holes having area less than mi area will be removed)
.
Standard_BooleanRemoveFaceMode ()
 Set mode which manage removing faces which have outer wires consisting only from edges
belonginig to removed internal wires.
By default it is equal to true.
.
const TopTools_SequenceOfShape & RemovedFaces () const
 Returns sequence of removed faces.
.
const TopTools_SequenceOfShape & RemovedWires () const
 Returns sequence of removed faces.
.
Standard_Boolean Status (const ShapeExtend_Status theStatus) const
 Queries status of last call to Perform()
: OK - nothing was done
:DONE1 - internal wires were removed
:DONE2 - small faces were removed.
:FAIL1 - initial shape is not specified
:FAIL2 - specified sub-shape is not belonged to inotial shape.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Member Functions

Standard_EXPORT void Clear ()
 Clear all sequences and temporary map;
.

Protected Attributes

Standard_Integer myStatus

Private Member Functions

Standard_EXPORT void removeSmallWire (const TopoDS_Shape &theFace, const TopoDS_Shape &theWire)
 Removes internal wires having area of contour less than specified MinArea
.
Standard_EXPORT void removeSmallFaces ()
 Removes faces having outer wire consisting
from removed edges(belonging small internal wires)
.

Private Attributes

TopoDS_Shape myShape
TopoDS_Shape myResult
Standard_Real myMinArea
Standard_Boolean myRemoveFacesMode
TopTools_IndexedDataMapOfShapeListOfShape myEdgeFaces
TopTools_DataMapOfShapeListOfShape myRemoveEdges
TopTools_SequenceOfShape myRemovedFaces
TopTools_SequenceOfShape myRemoveWires

Constructor & Destructor Documentation

Standard_EXPORT ShapeUpgrade_RemoveInternalWires::ShapeUpgrade_RemoveInternalWires  ) 
 

Standard_EXPORT ShapeUpgrade_RemoveInternalWires::ShapeUpgrade_RemoveInternalWires const TopoDS_Shape &  theShape  ) 
 


Member Function Documentation

Standard_EXPORT void ShapeUpgrade_RemoveInternalWires::Clear  )  [protected]
 

TopoDS_Shape ShapeUpgrade_RemoveInternalWires::GetResult  )  const [inline]
 

Standard_EXPORT const ShapeUpgrade_RemoveInternalWires::Handle Standard_Type   )  const
 

Reimplemented from ShapeUpgrade_Tool.

Standard_EXPORT void ShapeUpgrade_RemoveInternalWires::Init const TopoDS_Shape &  theShape  ) 
 

Standard_Real & ShapeUpgrade_RemoveInternalWires::MinArea  )  [inline]
 

Standard_EXPORT Standard_Boolean ShapeUpgrade_RemoveInternalWires::Perform const TopTools_SequenceOfShape &  theSeqShapes  ) 
 

Standard_EXPORT Standard_Boolean ShapeUpgrade_RemoveInternalWires::Perform  ) 
 

const TopTools_SequenceOfShape & ShapeUpgrade_RemoveInternalWires::RemovedFaces  )  const [inline]
 

const TopTools_SequenceOfShape & ShapeUpgrade_RemoveInternalWires::RemovedWires  )  const [inline]
 

Standard_Boolean & ShapeUpgrade_RemoveInternalWires::RemoveFaceMode  )  [inline]
 

Standard_EXPORT void ShapeUpgrade_RemoveInternalWires::removeSmallFaces  )  [private]
 

Standard_EXPORT void ShapeUpgrade_RemoveInternalWires::removeSmallWire const TopoDS_Shape &  theFace,
const TopoDS_Shape &  theWire
[private]
 

Standard_Boolean ShapeUpgrade_RemoveInternalWires::Status const ShapeExtend_Status  theStatus  )  const [inline]
 


Field Documentation

TopTools_IndexedDataMapOfShapeListOfShape ShapeUpgrade_RemoveInternalWires::myEdgeFaces [private]
 

Standard_Real ShapeUpgrade_RemoveInternalWires::myMinArea [private]
 

TopTools_SequenceOfShape ShapeUpgrade_RemoveInternalWires::myRemovedFaces [private]
 

TopTools_DataMapOfShapeListOfShape ShapeUpgrade_RemoveInternalWires::myRemoveEdges [private]
 

Standard_Boolean ShapeUpgrade_RemoveInternalWires::myRemoveFacesMode [private]
 

TopTools_SequenceOfShape ShapeUpgrade_RemoveInternalWires::myRemoveWires [private]
 

TopoDS_Shape ShapeUpgrade_RemoveInternalWires::myResult [private]
 

TopoDS_Shape ShapeUpgrade_RemoveInternalWires::myShape [private]
 

Standard_Integer ShapeUpgrade_RemoveInternalWires::myStatus [protected]
 


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