Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
ShapeFix_Shape Class Reference

Fixing shape in general

#include <ShapeFix_Shape.hxx>

Inheritance diagram for ShapeFix_Shape:
Inheritance graph
[legend]

Public Member Functions

 ShapeFix_Shape ()
 Empty Constructor

 ShapeFix_Shape (const TopoDS_Shape &shape)
 Initislises by shape.

void Init (const TopoDS_Shape &shape)
 Initislises by shape.

Standard_Boolean Perform (const Handle< Message_ProgressIndicator > &theProgress=0)
 Iterates on sub- shape and performs fixes

TopoDS_Shape Shape () const
 Returns resulting shape

Handle_ShapeFix_Solid FixSolidTool () const
 Returns tool for fixing solids.

Handle_ShapeFix_Shell FixShellTool () const
 Returns tool for fixing shells.

Handle_ShapeFix_Face FixFaceTool () const
 Returns tool for fixing faces.

Handle_ShapeFix_Wire FixWireTool () const
 Returns tool for fixing wires.

Handle_ShapeFix_Edge FixEdgeTool () const
 Returns tool for fixing edges.

Standard_Boolean Status (const ShapeExtend_Status status) const
 Returns the status of the last Fix.
This can be a combination of the following flags:
ShapeExtend_DONE1: some free edges were fixed
ShapeExtend_DONE2: some free wires were fixed
ShapeExtend_DONE3: some free faces were fixed
ShapeExtend_DONE4: some free shells were fixed
ShapeExtend_DONE5: some free solids were fixed
ShapeExtend_DONE6: shapes in compound(s) were fixed

virtual void SetMsgRegistrator (const Handle< ShapeExtend_BasicMsgRegistrator > &msgreg)
 Sets message registrator

virtual void SetPrecision (const Standard_Real preci)
 Sets basic precision value (also to FixSolidTool)

virtual void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance (also to FixSolidTool)

virtual void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance (also to FixSolidTool)

Standard_IntegerFixSolidMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Solid, by default True.

Standard_IntegerFixFreeShellMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Shell, by default True.

Standard_IntegerFixFreeFaceMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Face, by default True.

Standard_IntegerFixFreeWireMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Wire, by default True.

Standard_IntegerFixSameParameterMode ()
 Returns (modifiable) the mode for applying
ShapeFix::SameParameter after all fixes, by default True.

Standard_IntegerFixVertexPositionMode ()
 Returns (modifiable) the mode for applying
ShapeFix::FixVertexPosition before all fixes, by default False.

Protected Member Functions

void SameParameter (const TopoDS_Shape &shape, const Standard_Boolean enforce, const Handle< Message_ProgressIndicator > &theProgress=0)
 Fixes same parameterization problem on the passed shape
by updating tolerances of the corresponding topological
entitites.

Protected Attributes

TopoDS_Shape myResult
Handle_ShapeFix_Solid myFixSolid
TopTools_MapOfShape myMapFixingShape
Standard_Integer myFixSolidMode
Standard_Integer myFixShellMode
Standard_Integer myFixFaceMode
Standard_Integer myFixWireMode
Standard_Integer myFixSameParameterMode
Standard_Integer myFixVertexPositionMode
Standard_Integer myStatus

Constructor & Destructor Documentation


Member Function Documentation

Handle_ShapeFix_Edge ShapeFix_Shape::FixEdgeTool ( ) const
Handle_ShapeFix_Face ShapeFix_Shape::FixFaceTool ( ) const
Handle_ShapeFix_Shell ShapeFix_Shape::FixShellTool ( ) const
Handle_ShapeFix_Solid ShapeFix_Shape::FixSolidTool ( ) const
Handle_ShapeFix_Wire ShapeFix_Shape::FixWireTool ( ) const
void ShapeFix_Shape::SameParameter ( const TopoDS_Shape shape,
const Standard_Boolean  enforce,
const Handle< Message_ProgressIndicator > &  theProgress = 0 
) [protected]

Reimplemented from ShapeFix_Root.

Reimplemented from ShapeFix_Root.

Reimplemented from ShapeFix_Root.

virtual void ShapeFix_Shape::SetPrecision ( const Standard_Real  preci) [virtual]

Reimplemented from ShapeFix_Root.


Field Documentation

Handle_ShapeFix_Solid ShapeFix_Shape::myFixSolid [protected]

The documentation for this class was generated from the following file: