File indexing completed on 2026-09-11 09:17:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_FunctPSNorm_HeaderFile
0018 #define _Extrema_FunctPSNorm_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt.hxx>
0024 #include <NCollection_Sequence.hxx>
0025 #include <Extrema_POnSurf.hxx>
0026 #include <Standard_Boolean.hxx>
0027 #include <math_FunctionSetWithDerivatives.hxx>
0028 #include <math_Vector.hxx>
0029
0030 class Adaptor3d_Surface;
0031 class math_Matrix;
0032 class Extrema_POnSurf;
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054 class Extrema_FuncPSNorm : public math_FunctionSetWithDerivatives
0055 {
0056 public:
0057 DEFINE_STANDARD_ALLOC
0058
0059 Standard_EXPORT Extrema_FuncPSNorm();
0060
0061 Standard_EXPORT Extrema_FuncPSNorm(const gp_Pnt& P, const Adaptor3d_Surface& S);
0062
0063
0064 Standard_EXPORT void Initialize(const Adaptor3d_Surface& S);
0065
0066
0067 Standard_EXPORT void SetPoint(const gp_Pnt& P);
0068
0069 Standard_EXPORT int NbVariables() const override;
0070
0071 Standard_EXPORT int NbEquations() const override;
0072
0073
0074 Standard_EXPORT bool Value(const math_Vector& UV, math_Vector& F) override;
0075
0076
0077 Standard_EXPORT bool Derivatives(const math_Vector& UV, math_Matrix& DF) override;
0078
0079
0080 Standard_EXPORT bool Values(const math_Vector& UV, math_Vector& F, math_Matrix& DF) override;
0081
0082
0083 Standard_EXPORT int GetStateNumber() override;
0084
0085
0086 Standard_EXPORT int NbExt() const;
0087
0088
0089 Standard_EXPORT double SquareDistance(const int N) const;
0090
0091
0092 Standard_EXPORT const Extrema_POnSurf& Point(const int N) const;
0093
0094 private:
0095 gp_Pnt myP;
0096 const Adaptor3d_Surface* myS;
0097 double myU;
0098 double myV;
0099 gp_Pnt myPs;
0100 NCollection_Sequence<double> mySqDist;
0101 NCollection_Sequence<Extrema_POnSurf> myPoint;
0102 bool myPinit;
0103 bool mySinit;
0104 };
0105 #endif