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