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

ModelingAlgorithms
TKShHealing
ShapeFix


ShapeFix_Solid Class Reference

Provides method to build a solid from a shells and
orients them in order to have a valid solid with finite volume
.

#include <ShapeFix_Solid.hxx>

Inheritance diagram for ShapeFix_Solid:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeFix_Solid ()
 Empty constructor;
.
Standard_EXPORT ShapeFix_Solid (const TopoDS_Solid &solid)
 Initializes by solid.
.
virtual Standard_EXPORT void Init (const TopoDS_Solid &solid)
 Initializes by solid .
.
virtual Standard_EXPORT Standard_Boolean Perform ()
 Iterates on shells and performs fixes
(calls ShapeFix_Shell for each subshell)
.
Standard_EXPORT TopoDS_Solid SolidFromShell (const TopoDS_Shell &shell)
 Calls MakeSolid and orients the solid to be "not infinite"
.
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const
 Returns the status of the last Fix.
.
Standard_EXPORT TopoDS_Shape Solid () const
 Returns resulting solid.
.
Handle_ShapeFix_Shell FixShellTool () const
 Returns tool for fixing shells.
.
virtual Standard_EXPORT void SetMsgRegistrator (const Handle(ShapeExtend_BasicMsgRegistrator)&msgreg)
 Sets message registrator
.
virtual Standard_EXPORT void SetPrecision (const Standard_Real preci)
 Sets basic precision value (also to FixShellTool)
.
virtual Standard_EXPORT void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance (also to FixShellTool)
.
virtual Standard_EXPORT void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance (also to FixShellTool)
.
Standard_Integer & FixShellMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Shell, by default True.
.
Standard_BooleanCreateOpenSolidMode ()
 Returns (modifiable) the mode for creation of solids.
If mode myCreateOpenSolidMode is equal to true
solids are created from open shells
else solids are created from closed shells only.
ShapeFix_Shell, by default False.
.
Standard_EXPORT TopoDS_Shape Shape ()
 In case of multiconnexity returns compound of fixed solids
else returns one solid.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Attributes

TopoDS_Shape mySolid
Handle_ShapeFix_Shell myFixShell
Standard_Integer myStatus
Standard_Integer myFixShellMode

Private Attributes

Standard_Boolean myCreateOpenSolidMode

Constructor & Destructor Documentation

Standard_EXPORT ShapeFix_Solid::ShapeFix_Solid  ) 
 

Standard_EXPORT ShapeFix_Solid::ShapeFix_Solid const TopoDS_Solid &  solid  ) 
 


Member Function Documentation

Standard_Boolean & ShapeFix_Solid::CreateOpenSolidMode  )  [inline]
 

Standard_Integer & ShapeFix_Solid::FixShellMode  )  [inline]
 

Handle_ShapeFix_Shell ShapeFix_Solid::FixShellTool  )  const
 

Standard_EXPORT const ShapeFix_Solid::Handle Standard_Type   )  const
 

Reimplemented from ShapeFix_Root.

virtual Standard_EXPORT void ShapeFix_Solid::Init const TopoDS_Solid &  solid  )  [virtual]
 

virtual Standard_EXPORT Standard_Boolean ShapeFix_Solid::Perform  )  [virtual]
 

virtual Standard_EXPORT void ShapeFix_Solid::SetMaxTolerance const Standard_Real  maxtol  )  [virtual]
 

Reimplemented from ShapeFix_Root.

virtual Standard_EXPORT void ShapeFix_Solid::SetMinTolerance const Standard_Real  mintol  )  [virtual]
 

Reimplemented from ShapeFix_Root.

virtual Standard_EXPORT void ShapeFix_Solid::SetMsgRegistrator const Handle(ShapeExtend_BasicMsgRegistrator)&  msgreg  )  [virtual]
 

Reimplemented from ShapeFix_Root.

virtual Standard_EXPORT void ShapeFix_Solid::SetPrecision const Standard_Real  preci  )  [virtual]
 

Reimplemented from ShapeFix_Root.

Standard_EXPORT TopoDS_Shape ShapeFix_Solid::Shape  ) 
 

Standard_EXPORT TopoDS_Shape ShapeFix_Solid::Solid  )  const
 

Standard_EXPORT TopoDS_Solid ShapeFix_Solid::SolidFromShell const TopoDS_Shell &  shell  ) 
 

Standard_EXPORT Standard_Boolean ShapeFix_Solid::Status const ShapeExtend_Status  status  )  const
 


Field Documentation

Standard_Boolean ShapeFix_Solid::myCreateOpenSolidMode [private]
 

Handle_ShapeFix_Shell ShapeFix_Solid::myFixShell [protected]
 

Standard_Integer ShapeFix_Solid::myFixShellMode [protected]
 

TopoDS_Shape ShapeFix_Solid::mySolid [protected]
 

Standard_Integer ShapeFix_Solid::myStatus [protected]
 


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