File indexing completed on 2025-01-18 10:04:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeUpgrade_FixSmallCurves_HeaderFile
0017 #define _ShapeUpgrade_FixSmallCurves_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Standard_Integer.hxx>
0022 #include <TopoDS_Edge.hxx>
0023 #include <TopoDS_Face.hxx>
0024 #include <ShapeUpgrade_Tool.hxx>
0025 #include <Standard_Real.hxx>
0026 #include <ShapeExtend_Status.hxx>
0027 class ShapeUpgrade_SplitCurve3d;
0028 class ShapeUpgrade_SplitCurve2d;
0029 class Geom_Curve;
0030 class Geom2d_Curve;
0031
0032
0033 #ifdef Status
0034 #undef Status
0035 #endif
0036
0037 class ShapeUpgrade_FixSmallCurves;
0038 DEFINE_STANDARD_HANDLE(ShapeUpgrade_FixSmallCurves, ShapeUpgrade_Tool)
0039
0040
0041 class ShapeUpgrade_FixSmallCurves : public ShapeUpgrade_Tool
0042 {
0043
0044 public:
0045
0046
0047 Standard_EXPORT ShapeUpgrade_FixSmallCurves();
0048
0049 Standard_EXPORT void Init (const TopoDS_Edge& theEdge, const TopoDS_Face& theFace);
0050
0051 Standard_EXPORT virtual Standard_Boolean Approx (Handle(Geom_Curve)& Curve3d, Handle(Geom2d_Curve)& Curve2d, Handle(Geom2d_Curve)& Curve2dR, Standard_Real& First, Standard_Real& Last);
0052
0053
0054 Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
0055
0056
0057 Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
0058
0059
0060
0061
0062
0063
0064 Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const;
0065
0066
0067
0068
0069 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_FixSmallCurves,ShapeUpgrade_Tool)
0070
0071 protected:
0072
0073
0074 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
0075
0076
0077 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
0078
0079 Standard_Integer myStatus;
0080 Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
0081 Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
0082 TopoDS_Edge myEdge;
0083 TopoDS_Face myFace;
0084
0085
0086 private:
0087
0088
0089
0090
0091 };
0092
0093
0094
0095
0096
0097
0098
0099 #endif