Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
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

 ShapeFix_Shell ()
 Empty constructor

 ShapeFix_Shell (const TopoDS_Shell &shape)
 Initializes by shell.

void Init (const TopoDS_Shell &shell)
 Initializes by shell.

Standard_Boolean Perform (const Handle< Message_ProgressIndicator > &theProgress=0)
 Iterates on subshapes and performs fixes
(for each face calls ShapeFix_Face::Perform and
then calls FixFaceOrientation). The passed progress
indicator allows user to consult the current progress
stage and abort algorithm if needed.

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.


TopoDS_Shell Shell ()
 Returns fixed shell (or subset of oriented faces).

TopoDS_Shape Shape ()
 In case of multiconnexity returns compound of fixed shells
else returns one shell..

Standard_Integer NbShells () const
 Returns Number of obtainrd shells;

TopoDS_Compound ErrorFaces () const
 Returns not oriented subset of faces.

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 void SetMsgRegistrator (const Handle< ShapeExtend_BasicMsgRegistrator > &msgreg)
 Sets message registrator

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

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

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

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

Standard_IntegerFixOrientationMode ()
 Returns (modifiable) the mode for applying
FixFaceOrientation, by default True.

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


Member Function Documentation

Handle_ShapeFix_Face ShapeFix_Shell::FixFaceTool ( )

Reimplemented from ShapeFix_Root.

Reimplemented from ShapeFix_Root.

Reimplemented from ShapeFix_Root.

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

Reimplemented from ShapeFix_Root.


Field Documentation

Handle_ShapeFix_Face ShapeFix_Shell::myFixFace [protected]

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