Open CASCADE Technology 6.6.0
|
Fixing orientation of faces in shell
#include <ShapeFix_Shell.hxx>
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_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. | |
Protected Attributes | |
TopoDS_Shell | myShell |
TopoDS_Compound | myErrFaces |
Standard_Integer | myStatus |
Handle_ShapeFix_Face | myFixFace |
Standard_Integer | myFixFaceMode |
Standard_Integer | myFixOrientationMode |
Standard_Integer | myNbShells |
ShapeFix_Shell::ShapeFix_Shell | ( | ) |
ShapeFix_Shell::ShapeFix_Shell | ( | const TopoDS_Shell & | shape | ) |
TopoDS_Compound ShapeFix_Shell::ErrorFaces | ( | ) | const |
Standard_Integer& ShapeFix_Shell::FixFaceMode | ( | ) |
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 | ( | ) |
void ShapeFix_Shell::Init | ( | const TopoDS_Shell & | shell | ) |
Standard_Integer ShapeFix_Shell::NbShells | ( | ) | const |
Standard_Boolean ShapeFix_Shell::Perform | ( | const Handle< Message_ProgressIndicator > & | theProgress = 0 | ) |
virtual void ShapeFix_Shell::SetMaxTolerance | ( | const Standard_Real | maxtol | ) | [virtual] |
Reimplemented from ShapeFix_Root.
virtual void ShapeFix_Shell::SetMinTolerance | ( | const Standard_Real | mintol | ) | [virtual] |
Reimplemented from ShapeFix_Root.
virtual void ShapeFix_Shell::SetMsgRegistrator | ( | const Handle< ShapeExtend_BasicMsgRegistrator > & | msgreg | ) | [virtual] |
Reimplemented from ShapeFix_Root.
virtual void ShapeFix_Shell::SetPrecision | ( | const Standard_Real | preci | ) | [virtual] |
Reimplemented from ShapeFix_Root.
TopoDS_Shape ShapeFix_Shell::Shape | ( | ) |
TopoDS_Shell ShapeFix_Shell::Shell | ( | ) |
Standard_Boolean ShapeFix_Shell::Status | ( | const ShapeExtend_Status | status | ) | const |
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] |