File indexing completed on 2026-06-04 08:44:08
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_MapOfShape.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <ShapeFix_Root.hxx>
0027 #include <ShapeExtend_Status.hxx>
0028 #include <Message_ProgressRange.hxx>
0029
0030 class ShapeFix_Solid;
0031 class ShapeFix_Shell;
0032 class ShapeFix_Face;
0033 class ShapeFix_Wire;
0034 class ShapeFix_Edge;
0035 class ShapeExtend_BasicMsgRegistrator;
0036
0037
0038 #ifdef Status
0039 #undef Status
0040 #endif
0041
0042 class ShapeFix_Shape;
0043 DEFINE_STANDARD_HANDLE(ShapeFix_Shape, ShapeFix_Root)
0044
0045
0046 class ShapeFix_Shape : public ShapeFix_Root
0047 {
0048
0049 public:
0050
0051 Standard_EXPORT ShapeFix_Shape();
0052
0053
0054 Standard_EXPORT ShapeFix_Shape(const TopoDS_Shape& shape);
0055
0056
0057 Standard_EXPORT void Init(const TopoDS_Shape& shape);
0058
0059
0060 Standard_EXPORT Standard_Boolean
0061 Perform(const Message_ProgressRange& theProgress = Message_ProgressRange());
0062
0063
0064 Standard_EXPORT TopoDS_Shape Shape() const;
0065
0066
0067 Handle(ShapeFix_Solid) FixSolidTool() const;
0068
0069
0070 Handle(ShapeFix_Shell) FixShellTool() const;
0071
0072
0073 Handle(ShapeFix_Face) FixFaceTool() const;
0074
0075
0076 Handle(ShapeFix_Wire) FixWireTool() const;
0077
0078
0079 Handle(ShapeFix_Edge) FixEdgeTool() const;
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089 Standard_EXPORT Standard_Boolean Status(const ShapeExtend_Status status) const;
0090
0091
0092 Standard_EXPORT virtual void SetMsgRegistrator(
0093 const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg) Standard_OVERRIDE;
0094
0095
0096 Standard_EXPORT virtual void SetPrecision(const Standard_Real preci) Standard_OVERRIDE;
0097
0098
0099 Standard_EXPORT virtual void SetMinTolerance(const Standard_Real mintol) Standard_OVERRIDE;
0100
0101
0102 Standard_EXPORT virtual void SetMaxTolerance(const Standard_Real maxtol) Standard_OVERRIDE;
0103
0104
0105
0106 Standard_Integer& FixSolidMode();
0107
0108
0109
0110 Standard_Integer& FixFreeShellMode();
0111
0112
0113
0114 Standard_Integer& FixFreeFaceMode();
0115
0116
0117
0118 Standard_Integer& FixFreeWireMode();
0119
0120
0121
0122 Standard_Integer& FixSameParameterMode();
0123
0124
0125
0126 Standard_Integer& FixVertexPositionMode();
0127
0128
0129
0130 Standard_Integer& FixVertexTolMode();
0131
0132 DEFINE_STANDARD_RTTIEXT(ShapeFix_Shape, ShapeFix_Root)
0133
0134 protected:
0135
0136
0137
0138 Standard_EXPORT void SameParameter(
0139 const TopoDS_Shape& shape,
0140 const Standard_Boolean enforce,
0141 const Message_ProgressRange& theProgress = Message_ProgressRange());
0142
0143 TopoDS_Shape myResult;
0144 Handle(ShapeFix_Solid) myFixSolid;
0145 TopTools_MapOfShape myMapFixingShape;
0146 Standard_Integer myFixSolidMode;
0147 Standard_Integer myFixShellMode;
0148 Standard_Integer myFixFaceMode;
0149 Standard_Integer myFixWireMode;
0150 Standard_Integer myFixSameParameterMode;
0151 Standard_Integer myFixVertexPositionMode;
0152 Standard_Integer myFixVertexTolMode;
0153 Standard_Integer myStatus;
0154
0155 private:
0156 };
0157
0158 #include <ShapeFix_Shape.lxx>
0159
0160 #endif