File indexing completed on 2026-09-14 09:13:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _Blend_RstRstFunction_HeaderFile
0017 #define _Blend_RstRstFunction_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022 #include <Blend_AppFunction.hxx>
0023 #include <math_Vector.hxx>
0024 #include <Blend_DecrochStatus.hxx>
0025 #include <NCollection_Array1.hxx>
0026 #include <GeomAbs_Shape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <gp_Pnt.hxx>
0029 #include <gp_Pnt2d.hxx>
0030 #include <gp_Vec.hxx>
0031 #include <gp_Vec2d.hxx>
0032 class math_Matrix;
0033 class gp_Pnt;
0034 class gp_Pnt2d;
0035 class gp_Vec;
0036 class gp_Vec2d;
0037 class Blend_Point;
0038
0039
0040
0041
0042
0043
0044
0045
0046 class Blend_RstRstFunction : public Blend_AppFunction
0047 {
0048 public:
0049 DEFINE_STANDARD_ALLOC
0050
0051
0052 Standard_EXPORT int NbVariables() const override = 0;
0053
0054
0055 Standard_EXPORT int NbEquations() const override = 0;
0056
0057
0058
0059
0060
0061 Standard_EXPORT bool Value(const math_Vector& X, math_Vector& F) override = 0;
0062
0063
0064
0065
0066
0067 Standard_EXPORT bool Derivatives(const math_Vector& X, math_Matrix& D) override = 0;
0068
0069
0070
0071
0072
0073 Standard_EXPORT bool Values(const math_Vector& X, math_Vector& F, math_Matrix& D) override = 0;
0074
0075
0076
0077
0078 Standard_EXPORT void Set(const double Param) override = 0;
0079
0080
0081
0082
0083
0084 Standard_EXPORT void Set(const double First, const double Last) override = 0;
0085
0086
0087
0088
0089 Standard_EXPORT void GetTolerance(math_Vector& Tolerance, const double Tol) const override = 0;
0090
0091
0092
0093
0094
0095 Standard_EXPORT void GetBounds(math_Vector& InfBound, math_Vector& SupBound) const override = 0;
0096
0097
0098
0099
0100
0101 Standard_EXPORT bool IsSolution(const math_Vector& Sol, const double Tol) override = 0;
0102
0103
0104
0105 Standard_EXPORT double GetMinimalDistance() const override;
0106
0107
0108 Standard_EXPORT const gp_Pnt& Pnt1() const override;
0109
0110
0111 Standard_EXPORT const gp_Pnt& Pnt2() const override;
0112
0113
0114 Standard_EXPORT virtual const gp_Pnt& PointOnRst1() const = 0;
0115
0116
0117 Standard_EXPORT virtual const gp_Pnt& PointOnRst2() const = 0;
0118
0119
0120 Standard_EXPORT virtual const gp_Pnt2d& Pnt2dOnRst1() const = 0;
0121
0122
0123
0124 Standard_EXPORT virtual const gp_Pnt2d& Pnt2dOnRst2() const = 0;
0125
0126
0127 Standard_EXPORT virtual double ParameterOnRst1() const = 0;
0128
0129
0130 Standard_EXPORT virtual double ParameterOnRst2() const = 0;
0131
0132
0133
0134 Standard_EXPORT virtual bool IsTangencyPoint() const = 0;
0135
0136
0137 Standard_EXPORT virtual const gp_Vec& TangentOnRst1() const = 0;
0138
0139
0140
0141 Standard_EXPORT virtual const gp_Vec2d& Tangent2dOnRst1() const = 0;
0142
0143
0144 Standard_EXPORT virtual const gp_Vec& TangentOnRst2() const = 0;
0145
0146
0147
0148 Standard_EXPORT virtual const gp_Vec2d& Tangent2dOnRst2() const = 0;
0149
0150
0151
0152
0153
0154 Standard_EXPORT virtual Blend_DecrochStatus Decroch(const math_Vector& Sol,
0155 gp_Vec& NRst1,
0156 gp_Vec& TgRst1,
0157 gp_Vec& NRst2,
0158 gp_Vec& TgRst2) const = 0;
0159
0160
0161 Standard_EXPORT bool IsRational() const override = 0;
0162
0163
0164 Standard_EXPORT double GetSectionSize() const override = 0;
0165
0166
0167
0168 Standard_EXPORT void GetMinimalWeight(NCollection_Array1<double>& Weigths) const override = 0;
0169
0170
0171
0172 Standard_EXPORT int NbIntervals(const GeomAbs_Shape S) const override = 0;
0173
0174
0175
0176
0177
0178
0179 Standard_EXPORT void Intervals(NCollection_Array1<double>& T,
0180 const GeomAbs_Shape S) const override = 0;
0181
0182 Standard_EXPORT void GetShape(int& NbPoles,
0183 int& NbKnots,
0184 int& Degree,
0185 int& NbPoles2d) override = 0;
0186
0187
0188
0189
0190
0191
0192 Standard_EXPORT void GetTolerance(const double BoundTol,
0193 const double SurfTol,
0194 const double AngleTol,
0195 math_Vector& Tol3d,
0196 math_Vector& Tol1D) const override = 0;
0197
0198 Standard_EXPORT void Knots(NCollection_Array1<double>& TKnots) override = 0;
0199
0200 Standard_EXPORT void Mults(NCollection_Array1<int>& TMults) override = 0;
0201
0202 Standard_EXPORT void Section(const Blend_Point& P,
0203 NCollection_Array1<gp_Pnt>& Poles,
0204 NCollection_Array1<gp_Pnt2d>& Poles2d,
0205 NCollection_Array1<double>& Weigths) override = 0;
0206
0207
0208
0209
0210 Standard_EXPORT bool Section(const Blend_Point& P,
0211 NCollection_Array1<gp_Pnt>& Poles,
0212 NCollection_Array1<gp_Vec>& DPoles,
0213 NCollection_Array1<gp_Pnt2d>& Poles2d,
0214 NCollection_Array1<gp_Vec2d>& DPoles2d,
0215 NCollection_Array1<double>& Weigths,
0216 NCollection_Array1<double>& DWeigths) override = 0;
0217
0218
0219
0220
0221 Standard_EXPORT bool Section(const Blend_Point& P,
0222 NCollection_Array1<gp_Pnt>& Poles,
0223 NCollection_Array1<gp_Vec>& DPoles,
0224 NCollection_Array1<gp_Vec>& D2Poles,
0225 NCollection_Array1<gp_Pnt2d>& Poles2d,
0226 NCollection_Array1<gp_Vec2d>& DPoles2d,
0227 NCollection_Array1<gp_Vec2d>& D2Poles2d,
0228 NCollection_Array1<double>& Weigths,
0229 NCollection_Array1<double>& DWeigths,
0230 NCollection_Array1<double>& D2Weigths) override = 0;
0231 };
0232
0233 #endif