Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions | Protected Attributes
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

 ShapeUpgrade_RemoveInternalWires ()
 Creates empty constructor.

 ShapeUpgrade_RemoveInternalWires (const TopoDS_Shape &theShape)
void Init (const TopoDS_Shape &theShape)
 Initialize by a Shape.

Standard_Boolean Perform ()
 Removes all internal wires having area less than area specified as minimal allowed area

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_RealMinArea ()
 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_SequenceOfShapeRemovedFaces () const
 Returns sequence of removed faces.

const TopTools_SequenceOfShapeRemovedWires () 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.

Protected Member Functions

void Clear ()
 Clear all sequences and temporary map;

Protected Attributes

Standard_Integer myStatus

Constructor & Destructor Documentation

ShapeUpgrade_RemoveInternalWires::ShapeUpgrade_RemoveInternalWires ( )
ShapeUpgrade_RemoveInternalWires::ShapeUpgrade_RemoveInternalWires ( const TopoDS_Shape theShape)

Member Function Documentation

void ShapeUpgrade_RemoveInternalWires::Clear ( ) [protected]
TopoDS_Shape ShapeUpgrade_RemoveInternalWires::GetResult ( ) const
void ShapeUpgrade_RemoveInternalWires::Init ( const TopoDS_Shape theShape)
Standard_Real& ShapeUpgrade_RemoveInternalWires::MinArea ( )
Standard_Boolean ShapeUpgrade_RemoveInternalWires::Perform ( )
Standard_Boolean ShapeUpgrade_RemoveInternalWires::Perform ( const TopTools_SequenceOfShape theSeqShapes)
const TopTools_SequenceOfShape& ShapeUpgrade_RemoveInternalWires::RemovedFaces ( ) const
const TopTools_SequenceOfShape& ShapeUpgrade_RemoveInternalWires::RemovedWires ( ) const
Standard_Boolean& ShapeUpgrade_RemoveInternalWires::RemoveFaceMode ( )
Standard_Boolean ShapeUpgrade_RemoveInternalWires::Status ( const ShapeExtend_Status  theStatus) const

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines