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