Warning, file /include/opencascade/ShapeFix_Shell.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeFix_Shell_HeaderFile
0018 #define _ShapeFix_Shell_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <TopoDS_Shell.hxx>
0023 #include <TopoDS_Compound.hxx>
0024 #include <ShapeFix_Root.hxx>
0025 #include <ShapeExtend_Status.hxx>
0026 #include <Message_ProgressRange.hxx>
0027
0028 class ShapeFix_Face;
0029 class ShapeExtend_BasicMsgRegistrator;
0030
0031
0032 #ifdef Status
0033 #undef Status
0034 #endif
0035
0036 class ShapeFix_Shell;
0037 DEFINE_STANDARD_HANDLE(ShapeFix_Shell, ShapeFix_Root)
0038
0039
0040 class ShapeFix_Shell : public ShapeFix_Root
0041 {
0042
0043 public:
0044
0045
0046
0047 Standard_EXPORT ShapeFix_Shell();
0048
0049
0050 Standard_EXPORT ShapeFix_Shell(const TopoDS_Shell& shape);
0051
0052
0053 Standard_EXPORT void Init (const TopoDS_Shell& shell);
0054
0055
0056
0057
0058
0059
0060 Standard_EXPORT Standard_Boolean Perform (const Message_ProgressRange& theProgress = Message_ProgressRange());
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076 Standard_EXPORT Standard_Boolean FixFaceOrientation (
0077 const TopoDS_Shell& shell,
0078 const Standard_Boolean isAccountMultiConex = Standard_True,
0079 const Standard_Boolean NonManifold = Standard_False);
0080
0081
0082 Standard_EXPORT TopoDS_Shell Shell();
0083
0084
0085
0086 Standard_EXPORT TopoDS_Shape Shape();
0087
0088
0089 Standard_EXPORT Standard_Integer NbShells() const;
0090
0091
0092 Standard_EXPORT TopoDS_Compound ErrorFaces() const;
0093
0094
0095 Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const;
0096
0097
0098 Handle(ShapeFix_Face) FixFaceTool();
0099
0100
0101 Standard_EXPORT virtual void SetMsgRegistrator (const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg) Standard_OVERRIDE;
0102
0103
0104 Standard_EXPORT virtual void SetPrecision (const Standard_Real preci) Standard_OVERRIDE;
0105
0106
0107 Standard_EXPORT virtual void SetMinTolerance (const Standard_Real mintol) Standard_OVERRIDE;
0108
0109
0110 Standard_EXPORT virtual void SetMaxTolerance (const Standard_Real maxtol) Standard_OVERRIDE;
0111
0112
0113
0114 Standard_Integer& FixFaceMode();
0115
0116
0117
0118 Standard_Integer& FixOrientationMode();
0119
0120
0121 Standard_EXPORT virtual void SetNonManifoldFlag(const Standard_Boolean isNonManifold);
0122
0123
0124 DEFINE_STANDARD_RTTIEXT(ShapeFix_Shell,ShapeFix_Root)
0125
0126 protected:
0127
0128
0129 TopoDS_Shell myShell;
0130 TopoDS_Compound myErrFaces;
0131 Standard_Integer myStatus;
0132 Handle(ShapeFix_Face) myFixFace;
0133 Standard_Integer myFixFaceMode;
0134 Standard_Integer myFixOrientationMode;
0135 Standard_Integer myNbShells;
0136 Standard_Boolean myNonManifold;
0137
0138 private:
0139
0140
0141
0142
0143 };
0144
0145
0146 #include <ShapeFix_Shell.lxx>
0147
0148
0149
0150
0151
0152 #endif