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