File indexing completed on 2026-09-27 09:16:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox_HeaderFile
0018 #define _BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <gp_Dir2d.hxx>
0026 #include <math_FunctionSetWithDerivatives.hxx>
0027 #include <math_Vector.hxx>
0028 class StdFail_UndefinedDerivative;
0029 class BRepAdaptor_Surface;
0030 class BRepApprox_SurfaceTool;
0031 class IntSurf_Quadric;
0032 class IntSurf_QuadricTool;
0033 class math_Matrix;
0034 class gp_Pnt;
0035 class gp_Vec;
0036 class gp_Dir2d;
0037
0038 class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox : public math_FunctionSetWithDerivatives
0039 {
0040 public:
0041 DEFINE_STANDARD_ALLOC
0042
0043 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox();
0044
0045 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(
0046 const BRepAdaptor_Surface& PS,
0047 const IntSurf_Quadric& IS);
0048
0049 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(const IntSurf_Quadric& IS);
0050
0051 void Set(const BRepAdaptor_Surface& PS);
0052
0053 void SetImplicitSurface(const IntSurf_Quadric& IS);
0054
0055 void Set(const double Tolerance);
0056
0057 Standard_EXPORT int NbVariables() const override;
0058
0059 Standard_EXPORT int NbEquations() const override;
0060
0061 Standard_EXPORT bool Value(const math_Vector& X, math_Vector& F) override;
0062
0063 Standard_EXPORT bool Derivatives(const math_Vector& X, math_Matrix& D) override;
0064
0065 Standard_EXPORT bool Values(const math_Vector& X, math_Vector& F, math_Matrix& D) override;
0066
0067 double Root() const;
0068
0069
0070
0071 double Tolerance() const;
0072
0073 const gp_Pnt& Point() const;
0074
0075 Standard_EXPORT bool IsTangent();
0076
0077 const gp_Vec& Direction3d();
0078
0079 const gp_Dir2d& Direction2d();
0080
0081 const BRepAdaptor_Surface& PSurface() const;
0082
0083 const IntSurf_Quadric& ISurface() const;
0084
0085 private:
0086 void* surf;
0087 void* func;
0088 double u;
0089 double v;
0090 double tol;
0091 gp_Pnt pntsol;
0092 double valf;
0093 bool computed;
0094 bool tangent;
0095 double tgdu;
0096 double tgdv;
0097 gp_Vec gradient;
0098 bool derived;
0099 gp_Vec d1u;
0100 gp_Vec d1v;
0101 gp_Vec d3d;
0102 gp_Dir2d d2d;
0103 };
0104
0105 #define ThePSurface BRepAdaptor_Surface
0106 #define ThePSurface_hxx <BRepAdaptor_Surface.hxx>
0107 #define ThePSurfaceTool BRepApprox_SurfaceTool
0108 #define ThePSurfaceTool_hxx <BRepApprox_SurfaceTool.hxx>
0109 #define TheISurface IntSurf_Quadric
0110 #define TheISurface_hxx <IntSurf_Quadric.hxx>
0111 #define TheISurfaceTool IntSurf_QuadricTool
0112 #define TheISurfaceTool_hxx <IntSurf_QuadricTool.hxx>
0113 #define IntImp_ZerImpFunc BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox
0114 #define IntImp_ZerImpFunc_hxx <BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox.hxx>
0115
0116 #include <IntImp_ZerImpFunc.lxx>
0117
0118 #undef ThePSurface
0119 #undef ThePSurface_hxx
0120 #undef ThePSurfaceTool
0121 #undef ThePSurfaceTool_hxx
0122 #undef TheISurface
0123 #undef TheISurface_hxx
0124 #undef TheISurfaceTool
0125 #undef TheISurfaceTool_hxx
0126 #undef IntImp_ZerImpFunc
0127 #undef IntImp_ZerImpFunc_hxx
0128
0129 #endif