File indexing completed on 2026-10-29 09:18:28
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 <NCollection_Array1.hxx>
0031
0032 class BRepBlend_HCurve2dTool
0033 {
0034 public:
0035 DEFINE_STANDARD_ALLOC
0036
0037 static double FirstParameter(const occ::handle<Adaptor2d_Curve2d>& C);
0038
0039 static double LastParameter(const occ::handle<Adaptor2d_Curve2d>& C);
0040
0041 static GeomAbs_Shape Continuity(const occ::handle<Adaptor2d_Curve2d>& C);
0042
0043
0044
0045 static int NbIntervals(const occ::handle<Adaptor2d_Curve2d>& C, const GeomAbs_Shape S);
0046
0047
0048
0049
0050
0051
0052 static void Intervals(const occ::handle<Adaptor2d_Curve2d>& C,
0053 NCollection_Array1<double>& T,
0054 const GeomAbs_Shape S);
0055
0056 static bool IsClosed(const occ::handle<Adaptor2d_Curve2d>& C);
0057
0058 static bool IsPeriodic(const occ::handle<Adaptor2d_Curve2d>& C);
0059
0060 static double Period(const occ::handle<Adaptor2d_Curve2d>& C);
0061
0062
0063 static gp_Pnt2d Value(const occ::handle<Adaptor2d_Curve2d>& C, const double U);
0064
0065
0066 static void D0(const occ::handle<Adaptor2d_Curve2d>& C, const double U, gp_Pnt2d& P);
0067
0068
0069
0070
0071
0072 static void D1(const occ::handle<Adaptor2d_Curve2d>& C, const double U, gp_Pnt2d& P, gp_Vec2d& V);
0073
0074
0075
0076
0077
0078 static void D2(const occ::handle<Adaptor2d_Curve2d>& C,
0079 const double U,
0080 gp_Pnt2d& P,
0081 gp_Vec2d& V1,
0082 gp_Vec2d& V2);
0083
0084
0085
0086
0087
0088 static void D3(const occ::handle<Adaptor2d_Curve2d>& C,
0089 const double U,
0090 gp_Pnt2d& P,
0091 gp_Vec2d& V1,
0092 gp_Vec2d& V2,
0093 gp_Vec2d& V3);
0094
0095
0096
0097
0098
0099
0100 static gp_Vec2d DN(const occ::handle<Adaptor2d_Curve2d>& C, const double U, const int N);
0101
0102
0103
0104 static double Resolution(const occ::handle<Adaptor2d_Curve2d>& C, const double R3d);
0105
0106
0107
0108
0109 static GeomAbs_CurveType GetType(const occ::handle<Adaptor2d_Curve2d>& C);
0110
0111 static gp_Lin2d Line(const occ::handle<Adaptor2d_Curve2d>& C);
0112
0113 static gp_Circ2d Circle(const occ::handle<Adaptor2d_Curve2d>& C);
0114
0115 static gp_Elips2d Ellipse(const occ::handle<Adaptor2d_Curve2d>& C);
0116
0117 static gp_Hypr2d Hyperbola(const occ::handle<Adaptor2d_Curve2d>& C);
0118
0119 static gp_Parab2d Parabola(const occ::handle<Adaptor2d_Curve2d>& C);
0120
0121 static occ::handle<Geom2d_BezierCurve> Bezier(const occ::handle<Adaptor2d_Curve2d>& C);
0122
0123 static occ::handle<Geom2d_BSplineCurve> BSpline(const occ::handle<Adaptor2d_Curve2d>& C);
0124
0125 Standard_EXPORT static int NbSamples(const occ::handle<Adaptor2d_Curve2d>& C,
0126 const double U0,
0127 const double U1);
0128 };
0129
0130 #include <BRepBlend_HCurve2dTool.lxx>
0131
0132 #endif