Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-13 10:44:57

0001 // Created on: 1998-02-02
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _GeomFill_LocFunction_HeaderFile
0018 #define _GeomFill_LocFunction_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <gp_Vec.hxx>
0025 #include <NCollection_Array1.hxx>
0026 #include <gp_Mat.hxx>
0027 #include <Standard_Integer.hxx>
0028 class GeomFill_LocationLaw;
0029 
0030 class GeomFill_LocFunction
0031 {
0032 public:
0033   DEFINE_STANDARD_ALLOC
0034 
0035   Standard_EXPORT GeomFill_LocFunction(const occ::handle<GeomFill_LocationLaw>& Law);
0036 
0037   //! compute the section for v = param
0038   Standard_EXPORT bool D0(const double Param, const double First, const double Last);
0039 
0040   //! compute the first derivative in v direction of the
0041   //! section for v = param
0042   Standard_EXPORT bool D1(const double Param, const double First, const double Last);
0043 
0044   //! compute the second derivative in v direction of the
0045   //! section for v = param
0046   Standard_EXPORT bool D2(const double Param, const double First, const double Last);
0047 
0048   Standard_EXPORT void DN(const double Param,
0049                           const double First,
0050                           const double Last,
0051                           const int    Order,
0052                           double&      Result,
0053                           int&         Ier);
0054 
0055 private:
0056   occ::handle<GeomFill_LocationLaw> myLaw;
0057   NCollection_Array1<gp_Vec>        V;
0058   NCollection_Array1<gp_Vec>        DV;
0059   NCollection_Array1<gp_Vec>        D2V;
0060   gp_Mat                            M;
0061   gp_Mat                            DM;
0062   gp_Mat                            D2M;
0063 };
0064 
0065 #endif // _GeomFill_LocFunction_HeaderFile