File indexing completed on 2026-12-01 10:17:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeFix_Shape_HeaderFile
0018 #define _ShapeFix_Shape_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <TopTools_ShapeMapHasher.hxx>
0025 #include <NCollection_Map.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <ShapeFix_Root.hxx>
0028 #include <ShapeExtend_Status.hxx>
0029 #include <Message_ProgressRange.hxx>
0030
0031 class ShapeFix_Solid;
0032 class ShapeFix_Shell;
0033 class ShapeFix_Face;
0034 class ShapeFix_Wire;
0035 class ShapeFix_Edge;
0036 class ShapeExtend_BasicMsgRegistrator;
0037
0038
0039 #ifdef Status
0040 #undef Status
0041 #endif
0042
0043
0044 class ShapeFix_Shape : public ShapeFix_Root
0045 {
0046
0047 public:
0048
0049 Standard_EXPORT ShapeFix_Shape();
0050
0051
0052 Standard_EXPORT ShapeFix_Shape(const TopoDS_Shape& shape);
0053
0054
0055 Standard_EXPORT void Init(const TopoDS_Shape& shape);
0056
0057
0058 Standard_EXPORT bool Perform(const Message_ProgressRange& theProgress = Message_ProgressRange());
0059
0060
0061 Standard_EXPORT TopoDS_Shape Shape() const;
0062
0063
0064 occ::handle<ShapeFix_Solid> FixSolidTool() const;
0065
0066
0067 occ::handle<ShapeFix_Shell> FixShellTool() const;
0068
0069
0070 occ::handle<ShapeFix_Face> FixFaceTool() const;
0071
0072
0073 occ::handle<ShapeFix_Wire> FixWireTool() const;
0074
0075
0076 occ::handle<ShapeFix_Edge> FixEdgeTool() const;
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086 Standard_EXPORT bool Status(const ShapeExtend_Status status) const;
0087
0088
0089 Standard_EXPORT void SetMsgRegistrator(
0090 const occ::handle<ShapeExtend_BasicMsgRegistrator>& msgreg) override;
0091
0092
0093 Standard_EXPORT void SetPrecision(const double preci) override;
0094
0095
0096 Standard_EXPORT void SetMinTolerance(const double mintol) override;
0097
0098
0099 Standard_EXPORT void SetMaxTolerance(const double maxtol) override;
0100
0101
0102
0103 int& FixSolidMode();
0104
0105
0106
0107 int& FixFreeShellMode();
0108
0109
0110
0111 int& FixFreeFaceMode();
0112
0113
0114
0115 int& FixFreeWireMode();
0116
0117
0118
0119 int& FixSameParameterMode();
0120
0121
0122
0123 int& FixVertexPositionMode();
0124
0125
0126
0127 int& FixVertexTolMode();
0128
0129 DEFINE_STANDARD_RTTIEXT(ShapeFix_Shape, ShapeFix_Root)
0130
0131 protected:
0132
0133
0134
0135 Standard_EXPORT void SameParameter(
0136 const TopoDS_Shape& shape,
0137 const bool enforce,
0138 const Message_ProgressRange& theProgress = Message_ProgressRange());
0139
0140 TopoDS_Shape myResult;
0141 occ::handle<ShapeFix_Solid> myFixSolid;
0142 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> myMapFixingShape;
0143 int myFixSolidMode;
0144 int myFixShellMode;
0145 int myFixFaceMode;
0146 int myFixWireMode;
0147 int myFixSameParameterMode;
0148 int myFixVertexPositionMode;
0149 int myFixVertexTolMode;
0150 int myStatus;
0151 };
0152
0153 #include <ShapeFix_Shape.lxx>
0154
0155 #endif