File indexing completed on 2025-01-18 10:03:07
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
0039
0040 class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox : public math_FunctionSetWithDerivatives
0041 {
0042 public:
0043
0044 DEFINE_STANDARD_ALLOC
0045
0046
0047 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox();
0048
0049 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& PS, const IntSurf_Quadric& IS);
0050
0051 Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(const IntSurf_Quadric& IS);
0052
0053 void Set (const BRepAdaptor_Surface& PS);
0054
0055 void SetImplicitSurface (const IntSurf_Quadric& IS);
0056
0057 void Set (const Standard_Real Tolerance);
0058
0059 Standard_EXPORT Standard_Integer NbVariables() const;
0060
0061 Standard_EXPORT Standard_Integer NbEquations() const;
0062
0063 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
0064
0065 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
0066
0067 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
0068
0069 Standard_Real Root() const;
0070
0071
0072
0073 Standard_Real Tolerance() const;
0074
0075 const gp_Pnt& Point() const;
0076
0077 Standard_EXPORT Standard_Boolean IsTangent();
0078
0079 const gp_Vec& Direction3d();
0080
0081 const gp_Dir2d& Direction2d();
0082
0083 const BRepAdaptor_Surface& PSurface() const;
0084
0085 const IntSurf_Quadric& ISurface() const;
0086
0087
0088
0089
0090 protected:
0091
0092
0093
0094
0095
0096 private:
0097
0098
0099
0100 Standard_Address surf;
0101 Standard_Address func;
0102 Standard_Real u;
0103 Standard_Real v;
0104 Standard_Real tol;
0105 gp_Pnt pntsol;
0106 Standard_Real valf;
0107 Standard_Boolean computed;
0108 Standard_Boolean tangent;
0109 Standard_Real tgdu;
0110 Standard_Real tgdv;
0111 gp_Vec gradient;
0112 Standard_Boolean derived;
0113 gp_Vec d1u;
0114 gp_Vec d1v;
0115 gp_Vec d3d;
0116 gp_Dir2d d2d;
0117
0118
0119 };
0120
0121 #define ThePSurface BRepAdaptor_Surface
0122 #define ThePSurface_hxx <BRepAdaptor_Surface.hxx>
0123 #define ThePSurfaceTool BRepApprox_SurfaceTool
0124 #define ThePSurfaceTool_hxx <BRepApprox_SurfaceTool.hxx>
0125 #define TheISurface IntSurf_Quadric
0126 #define TheISurface_hxx <IntSurf_Quadric.hxx>
0127 #define TheISurfaceTool IntSurf_QuadricTool
0128 #define TheISurfaceTool_hxx <IntSurf_QuadricTool.hxx>
0129 #define IntImp_ZerImpFunc BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox
0130 #define IntImp_ZerImpFunc_hxx <BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox.hxx>
0131
0132 #include <IntImp_ZerImpFunc.lxx>
0133
0134 #undef ThePSurface
0135 #undef ThePSurface_hxx
0136 #undef ThePSurfaceTool
0137 #undef ThePSurfaceTool_hxx
0138 #undef TheISurface
0139 #undef TheISurface_hxx
0140 #undef TheISurfaceTool
0141 #undef TheISurfaceTool_hxx
0142 #undef IntImp_ZerImpFunc
0143 #undef IntImp_ZerImpFunc_hxx
0144
0145
0146
0147
0148 #endif