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

ModelingAlgorithms
TKShHealing
ShapeFix


ShapeFix_Shell Class Reference

Fixing orientation of faces in shell
.

#include <ShapeFix_Shell.hxx>

Inheritance diagram for ShapeFix_Shell:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeFix_Shell ()
 Empty constructor
.
Standard_EXPORT ShapeFix_Shell (const TopoDS_Shell &shape)
 Initializes by shell.
.
Standard_EXPORT void Init (const TopoDS_Shell &shell)
 Initializes by shell.
.
Standard_EXPORT Standard_Boolean Perform ()
 Iterates on subshapes and performs fixes
(for each face calls ShapeFix_Face::Perform and
then calls FixFaceOrientation)
.
Standard_EXPORT Standard_Boolean FixFaceOrientation (const TopoDS_Shell &shell, const Standard_Boolean isAccountMultiConex=Standard_True, const Standard_Boolean NonManifold=Standard_False)
 Fixes orientation of faces in shell.
Changes orientation of face in the shell, if it is oriented opposite
to neigbouring faces. If it is not possible to orient all faces in the
shell (like in case of mebious band), this method orients only subset
of faces. Other faces are stored in Error compound.
Modes :
isAccountMultiConex - mode for account cases of multiconnexity.
If this mode is equal to Standard_True, separate shells will be created
in the cases of multiconnexity. If this mode is equal to Standard_False,
one shell will be created without account of multiconnexity.By defautt - Standard_True;
NonManifold - mode for creation of non-manifold shells.
If this mode is equal to Standard_True one non-manifold will be created from shell
contains multishared edges. Else if this mode is equal to Standard_False only
manifold shells will be created. By default - Standard_False.

.
Standard_EXPORT TopoDS_Shell Shell ()
 Returns fixed shell (or subset of oriented faces).
.
Standard_EXPORT TopoDS_Shape Shape ()
 In case of multiconnexity returns compound of fixed shells
else returns one shell..
.
Standard_EXPORT Standard_Integer NbShells () const
 Returns Number of obtainrd shells;
.
Standard_EXPORT TopoDS_Compound ErrorFaces () const
 Returns not oriented subset of faces.
.
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const
 Returns the status of the last Fix.
.
Handle_ShapeFix_Face FixFaceTool ()
 Returns tool for fixing faces.
.
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 FixWireTool)
.
virtual Standard_EXPORT void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance (also to FixWireTool)
.
virtual Standard_EXPORT void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance (also to FixWireTool)
.
Standard_Integer & FixFaceMode ()
 Returns (modifiable) the mode for applying fixes of
ShapeFix_Face, by default True.
.
Standard_Integer & FixOrientationMode ()
 Returns (modifiable) the mode for applying
FixFaceOrientation, by default True.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Attributes

TopoDS_Shell myShell
TopoDS_Compound myErrFaces
Standard_Integer myStatus
Handle_ShapeFix_Face myFixFace
Standard_Integer myFixFaceMode
Standard_Integer myFixOrientationMode
Standard_Integer myNbShells

Constructor & Destructor Documentation

Standard_EXPORT ShapeFix_Shell::ShapeFix_Shell  ) 
 

Standard_EXPORT ShapeFix_Shell::ShapeFix_Shell const TopoDS_Shell &  shape  ) 
 


Member Function Documentation

Standard_EXPORT TopoDS_Compound ShapeFix_Shell::ErrorFaces  )  const
 

Standard_Integer & ShapeFix_Shell::FixFaceMode  )  [inline]
 

Standard_EXPORT Standard_Boolean ShapeFix_Shell::FixFaceOrientation const TopoDS_Shell &  shell,
const Standard_Boolean  isAccountMultiConex = Standard_True,
const Standard_Boolean  NonManifold = Standard_False
 

Handle_ShapeFix_Face ShapeFix_Shell::FixFaceTool  ) 
 

Standard_Integer & ShapeFix_Shell::FixOrientationMode  )  [inline]
 

Standard_EXPORT const ShapeFix_Shell::Handle Standard_Type   )  const
 

Reimplemented from ShapeFix_Root.

Standard_EXPORT void ShapeFix_Shell::Init const TopoDS_Shell &  shell  ) 
 

Standard_EXPORT Standard_Integer ShapeFix_Shell::NbShells  )  const
 

Standard_EXPORT Standard_Boolean ShapeFix_Shell::Perform  ) 
 

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

Reimplemented from ShapeFix_Root.

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

Reimplemented from ShapeFix_Root.

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

Reimplemented from ShapeFix_Root.

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

Reimplemented from ShapeFix_Root.

Standard_EXPORT TopoDS_Shape ShapeFix_Shell::Shape  ) 
 

Standard_EXPORT TopoDS_Shell ShapeFix_Shell::Shell  ) 
 

Standard_EXPORT Standard_Boolean ShapeFix_Shell::Status const ShapeExtend_Status  status  )  const
 


Field Documentation

TopoDS_Compound ShapeFix_Shell::myErrFaces [protected]
 

Handle_ShapeFix_Face ShapeFix_Shell::myFixFace [protected]
 

Standard_Integer ShapeFix_Shell::myFixFaceMode [protected]
 

Standard_Integer ShapeFix_Shell::myFixOrientationMode [protected]
 

Standard_Integer ShapeFix_Shell::myNbShells [protected]
 

TopoDS_Shell ShapeFix_Shell::myShell [protected]
 

Standard_Integer ShapeFix_Shell::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