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

 ShapeFix_Wireframe ()
 ShapeFix_Wireframe (const TopoDS_Shape &shape)
virtual void ClearStatuses ()
 Clears all statuses

void Load (const TopoDS_Shape &shape)
 Loads a shape, resets statuses

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_Boolean FixSmallEdges ()
 Fixes small edges in shape by merging adjacent edges
If precision is 0.0, uses Precision::Confusion().

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_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.

Protected Attributes

TopoDS_Shape myShape

Constructor & Destructor Documentation

ShapeFix_Wireframe::ShapeFix_Wireframe ( )
ShapeFix_Wireframe::ShapeFix_Wireframe ( const TopoDS_Shape shape)

Member Function Documentation

Standard_Boolean ShapeFix_Wireframe::CheckSmallEdges ( TopTools_MapOfShape theSmallEdges,
TopTools_DataMapOfShapeListOfShape theEdgeToFaces,
TopTools_DataMapOfShapeListOfShape theFaceWithSmall,
TopTools_MapOfShape theMultyEdges 
)
virtual void ShapeFix_Wireframe::ClearStatuses ( ) [virtual]
Standard_Boolean ShapeFix_Wireframe::FixSmallEdges ( )
Standard_Boolean ShapeFix_Wireframe::FixWireGaps ( )
Standard_Real ShapeFix_Wireframe::LimitAngle ( ) const
void ShapeFix_Wireframe::Load ( const TopoDS_Shape shape)
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 ( )
void ShapeFix_Wireframe::SetLimitAngle ( const Standard_Real  theLimitAngle)
TopoDS_Shape ShapeFix_Wireframe::Shape ( )
Standard_Boolean ShapeFix_Wireframe::StatusSmallEdges ( const ShapeExtend_Status  status) const
Standard_Boolean ShapeFix_Wireframe::StatusWireGaps ( const ShapeExtend_Status  status) const

Field Documentation

Reimplemented from ShapeFix_Root.


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