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

ModelingAlgorithms
TKShHealing
ShapeFix


ShapeFix_Wireframe Class Reference

Provides methods for fixing wireframe of shape
.

#include <ShapeFix_Wireframe.hxx>

Inheritance diagram for ShapeFix_Wireframe:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeFix_Wireframe ()
Standard_EXPORT ShapeFix_Wireframe (const TopoDS_Shape &shape)
virtual Standard_EXPORT void ClearStatuses ()
 Clears all statuses
.
Standard_EXPORT void Load (const TopoDS_Shape &shape)
 Loads a shape, resets statuses
.
Standard_EXPORT Standard_Boolean FixWireGaps ()
 Fixes gaps between ends of curves of adjacent edges
(both 3d and pcurves) in wires
If precision is 0.0, uses Precision::Confusion().
.
Standard_EXPORT Standard_Boolean FixSmallEdges ()
 Fixes small edges in shape by merging adjacent edges
If precision is 0.0, uses Precision::Confusion().
.
Standard_EXPORT Standard_Boolean CheckSmallEdges (TopTools_MapOfShape &theSmallEdges, TopTools_DataMapOfShapeListOfShape &theEdgeToFaces, TopTools_DataMapOfShapeListOfShape &theFaceWithSmall, TopTools_MapOfShape &theMultyEdges)
 Auxiliary tool for FixSmallEdges which checks for small edges and fills the maps.
Returns True if at least one small edge has been found.
.
Standard_EXPORT Standard_Boolean MergeSmallEdges (TopTools_MapOfShape &theSmallEdges, TopTools_DataMapOfShapeListOfShape &theEdgeToFaces, TopTools_DataMapOfShapeListOfShape &theFaceWithSmall, TopTools_MapOfShape &theMultyEdges, const Standard_Boolean theModeDrop=Standard_False, const Standard_Real theLimitAngle=-1)
 Auxiliary tool for FixSmallEdges which merges small edges.
If theModeDrop is equal to Standard_True then small edges,
which cannot be connected with adjacent edges are dropped.
Otherwise they are kept.
theLimitAngle specifies maximum allowed tangency
discontinuity between adjacent edges.
If theLimitAngle is equal to -1, this angle is not taken into account.
.
Standard_Boolean StatusWireGaps (const ShapeExtend_Status status) const
 Decodes the status of the last FixWireGaps.
OK - No gaps were found
DONE1 - Some gaps in 3D were fixed
DONE2 - Some gaps in 2D were fixed
FAIL1 - Failed to fix some gaps in 3D
FAIL2 - Failed to fix some gaps in 2D
.
Standard_Boolean StatusSmallEdges (const ShapeExtend_Status status) const
 Decodes the status of the last FixSmallEdges.
OK - No small edges were found
DONE1 - Some small edges were fixed
FAIL1 - Failed to fix some small edges
.
TopoDS_Shape Shape ()
Standard_BooleanModeDropSmallEdges ()
 Returns mode managing removing small edges.
.
void SetLimitAngle (const Standard_Real theLimitAngle)
 Set limit angle for merging edges.
.
Standard_Real LimitAngle () const
 Get limit angle for merging edges.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Attributes

TopoDS_Shape myShape

Private Attributes

Standard_Boolean myModeDrop
Standard_Real myLimitAngle
Standard_Integer myStatusWireGaps
Standard_Integer myStatusSmallEdges

Constructor & Destructor Documentation

Standard_EXPORT ShapeFix_Wireframe::ShapeFix_Wireframe  ) 
 

Standard_EXPORT ShapeFix_Wireframe::ShapeFix_Wireframe const TopoDS_Shape &  shape  ) 
 


Member Function Documentation

Standard_EXPORT Standard_Boolean ShapeFix_Wireframe::CheckSmallEdges TopTools_MapOfShape &  theSmallEdges,
TopTools_DataMapOfShapeListOfShape &  theEdgeToFaces,
TopTools_DataMapOfShapeListOfShape &  theFaceWithSmall,
TopTools_MapOfShape &  theMultyEdges
 

virtual Standard_EXPORT void ShapeFix_Wireframe::ClearStatuses  )  [virtual]
 

Standard_EXPORT Standard_Boolean ShapeFix_Wireframe::FixSmallEdges  ) 
 

Standard_EXPORT Standard_Boolean ShapeFix_Wireframe::FixWireGaps  ) 
 

Standard_EXPORT const ShapeFix_Wireframe::Handle Standard_Type   )  const
 

Reimplemented from ShapeFix_Root.

Standard_Real ShapeFix_Wireframe::LimitAngle  )  const [inline]
 

Standard_EXPORT void ShapeFix_Wireframe::Load const TopoDS_Shape &  shape  ) 
 

Standard_EXPORT Standard_Boolean ShapeFix_Wireframe::MergeSmallEdges TopTools_MapOfShape &  theSmallEdges,
TopTools_DataMapOfShapeListOfShape &  theEdgeToFaces,
TopTools_DataMapOfShapeListOfShape &  theFaceWithSmall,
TopTools_MapOfShape &  theMultyEdges,
const Standard_Boolean  theModeDrop = Standard_False,
const Standard_Real  theLimitAngle = -1
 

Standard_Boolean & ShapeFix_Wireframe::ModeDropSmallEdges  )  [inline]
 

void ShapeFix_Wireframe::SetLimitAngle const Standard_Real  theLimitAngle  )  [inline]
 

TopoDS_Shape ShapeFix_Wireframe::Shape  )  [inline]
 

Standard_Boolean ShapeFix_Wireframe::StatusSmallEdges const ShapeExtend_Status  status  )  const [inline]
 

Standard_Boolean ShapeFix_Wireframe::StatusWireGaps const ShapeExtend_Status  status  )  const [inline]
 


Field Documentation

Standard_Real ShapeFix_Wireframe::myLimitAngle [private]
 

Standard_Boolean ShapeFix_Wireframe::myModeDrop [private]
 

TopoDS_Shape ShapeFix_Wireframe::myShape [protected]
 

Reimplemented from ShapeFix_Root.

Standard_Integer ShapeFix_Wireframe::myStatusSmallEdges [private]
 

Standard_Integer ShapeFix_Wireframe::myStatusWireGaps [private]
 


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