File indexing completed on 2026-07-30 09:13:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepBlend_HCurve2dTool_HeaderFile
0018 #define _BRepBlend_HCurve2dTool_HeaderFile
0019
0020 #include <Adaptor2d_Curve2d.hxx>
0021 #include <GeomAbs_CurveType.hxx>
0022 #include <GeomAbs_Shape.hxx>
0023 #include <gp_Lin2d.hxx>
0024 #include <gp_Circ2d.hxx>
0025 #include <gp_Elips2d.hxx>
0026 #include <gp_Parab2d.hxx>
0027 #include <gp_Pnt2d.hxx>
0028 #include <gp_Vec2d.hxx>
0029 #include <gp_Hypr2d.hxx>
0030 #include <TColStd_Array1OfReal.hxx>
0031
0032 class BRepBlend_HCurve2dTool
0033 {
0034 public:
0035 DEFINE_STANDARD_ALLOC
0036
0037 static Standard_Real FirstParameter(const Handle(Adaptor2d_Curve2d)& C);
0038
0039 static Standard_Real LastParameter(const Handle(Adaptor2d_Curve2d)& C);
0040
0041 static GeomAbs_Shape Continuity(const Handle(Adaptor2d_Curve2d)& C);
0042
0043
0044
0045 static Standard_Integer NbIntervals(const Handle(Adaptor2d_Curve2d)& C, const GeomAbs_Shape S);
0046
0047
0048
0049
0050
0051
0052 static void Intervals(const Handle(Adaptor2d_Curve2d)& C,
0053 TColStd_Array1OfReal& T,
0054 const GeomAbs_Shape S);
0055
0056 static Standard_Boolean IsClosed(const Handle(Adaptor2d_Curve2d)& C);
0057
0058 static Standard_Boolean IsPeriodic(const Handle(Adaptor2d_Curve2d)& C);
0059
0060 static Standard_Real Period(const Handle(Adaptor2d_Curve2d)& C);
0061
0062
0063 static gp_Pnt2d Value(const Handle(Adaptor2d_Curve2d)& C, const Standard_Real U);
0064
0065
0066 static void D0(const Handle(Adaptor2d_Curve2d)& C, const Standard_Real U, gp_Pnt2d& P);
0067
0068
0069
0070
0071
0072 static void D1(const Handle(Adaptor2d_Curve2d)& C,
0073 const Standard_Real U,
0074 gp_Pnt2d& P,
0075 gp_Vec2d& V);
0076
0077
0078
0079
0080
0081 static void D2(const Handle(Adaptor2d_Curve2d)& C,
0082 const Standard_Real U,
0083 gp_Pnt2d& P,
0084 gp_Vec2d& V1,
0085 gp_Vec2d& V2);
0086
0087
0088
0089
0090
0091 static void D3(const Handle(Adaptor2d_Curve2d)& C,
0092 const Standard_Real U,
0093 gp_Pnt2d& P,
0094 gp_Vec2d& V1,
0095 gp_Vec2d& V2,
0096 gp_Vec2d& V3);
0097
0098
0099
0100
0101
0102
0103 static gp_Vec2d DN(const Handle(Adaptor2d_Curve2d)& C,
0104 const Standard_Real U,
0105 const Standard_Integer N);
0106
0107
0108
0109 static Standard_Real Resolution(const Handle(Adaptor2d_Curve2d)& C, const Standard_Real R3d);
0110
0111
0112
0113
0114 static GeomAbs_CurveType GetType(const Handle(Adaptor2d_Curve2d)& C);
0115
0116 static gp_Lin2d Line(const Handle(Adaptor2d_Curve2d)& C);
0117
0118 static gp_Circ2d Circle(const Handle(Adaptor2d_Curve2d)& C);
0119
0120 static gp_Elips2d Ellipse(const Handle(Adaptor2d_Curve2d)& C);
0121
0122 static gp_Hypr2d Hyperbola(const Handle(Adaptor2d_Curve2d)& C);
0123
0124 static gp_Parab2d Parabola(const Handle(Adaptor2d_Curve2d)& C);
0125
0126 static Handle(Geom2d_BezierCurve) Bezier(const Handle(Adaptor2d_Curve2d)& C);
0127
0128 static Handle(Geom2d_BSplineCurve) BSpline(const Handle(Adaptor2d_Curve2d)& C);
0129
0130 Standard_EXPORT static Standard_Integer NbSamples(const Handle(Adaptor2d_Curve2d)& C,
0131 const Standard_Real U0,
0132 const Standard_Real U1);
0133
0134 protected:
0135 private:
0136 };
0137
0138 #include <BRepBlend_HCurve2dTool.lxx>
0139
0140 #endif