// Created on: 1995-06-06 // Created by: Jean Yves LEBEY // Copyright (c) 1995-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox_HeaderFile #define _BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox_HeaderFile #include #include #include #include #include #include #include #include #include #include #include #include class StdFail_UndefinedDerivative; class BRepAdaptor_Surface; class BRepApprox_SurfaceTool; class IntSurf_Quadric; class IntSurf_QuadricTool; class math_Matrix; class gp_Pnt; class gp_Vec; class gp_Dir2d; class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox : public math_FunctionSetWithDerivatives { public: DEFINE_STANDARD_ALLOC Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(); Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& PS, const IntSurf_Quadric& IS); Standard_EXPORT BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(const IntSurf_Quadric& IS); void Set (const BRepAdaptor_Surface& PS); void SetImplicitSurface (const IntSurf_Quadric& IS); void Set (const Standard_Real Tolerance); Standard_EXPORT Standard_Integer NbVariables() const; Standard_EXPORT Standard_Integer NbEquations() const; Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F); Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D); Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D); Standard_Real Root() const; //! Returns the value Tol so that if Abs(Func.Root()) #define ThePSurfaceTool BRepApprox_SurfaceTool #define ThePSurfaceTool_hxx #define TheISurface IntSurf_Quadric #define TheISurface_hxx #define TheISurfaceTool IntSurf_QuadricTool #define TheISurfaceTool_hxx #define IntImp_ZerImpFunc BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox #define IntImp_ZerImpFunc_hxx #include #undef ThePSurface #undef ThePSurface_hxx #undef ThePSurfaceTool #undef ThePSurfaceTool_hxx #undef TheISurface #undef TheISurface_hxx #undef TheISurfaceTool #undef TheISurfaceTool_hxx #undef IntImp_ZerImpFunc #undef IntImp_ZerImpFunc_hxx #endif // _BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox_HeaderFile