Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-28 09:17:54

0001 // Created on: 1994-02-24
0002 // Created by: Laurent BOURESCHE
0003 // Copyright (c) 1994-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 _BRepLProp_SurfaceTool_HeaderFile
0018 #define _BRepLProp_SurfaceTool_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 class BRepAdaptor_Surface;
0025 class gp_Pnt;
0026 class gp_Vec;
0027 
0028 class BRepLProp_SurfaceTool
0029 {
0030 public:
0031   DEFINE_STANDARD_ALLOC
0032 
0033   //! Computes the point <P> of parameter <U> and <V> on the
0034   //! Surface <S>.
0035   Standard_EXPORT static void Value(const BRepAdaptor_Surface& S,
0036                                     const Standard_Real        U,
0037                                     const Standard_Real        V,
0038                                     gp_Pnt&                    P);
0039 
0040   //! Computes the point <P> and first derivative <D1*> of
0041   //! parameter <U> and <V> on the Surface <S>.
0042   Standard_EXPORT static void D1(const BRepAdaptor_Surface& S,
0043                                  const Standard_Real        U,
0044                                  const Standard_Real        V,
0045                                  gp_Pnt&                    P,
0046                                  gp_Vec&                    D1U,
0047                                  gp_Vec&                    D1V);
0048 
0049   //! Computes the point <P>, the first derivative <D1*> and second
0050   //! derivative <D2*> of parameter <U> and <V> on the Surface <S>.
0051   Standard_EXPORT static void D2(const BRepAdaptor_Surface& S,
0052                                  const Standard_Real        U,
0053                                  const Standard_Real        V,
0054                                  gp_Pnt&                    P,
0055                                  gp_Vec&                    D1U,
0056                                  gp_Vec&                    D1V,
0057                                  gp_Vec&                    D2U,
0058                                  gp_Vec&                    D2V,
0059                                  gp_Vec&                    DUV);
0060 
0061   Standard_EXPORT static gp_Vec DN(const BRepAdaptor_Surface& S,
0062                                    const Standard_Real        U,
0063                                    const Standard_Real        V,
0064                                    const Standard_Integer     IU,
0065                                    const Standard_Integer     IV);
0066 
0067   //! returns the order of continuity of the Surface <S>.
0068   //! returns 1 : first derivative only is computable
0069   //! returns 2 : first and second derivative only are computable.
0070   Standard_EXPORT static Standard_Integer Continuity(const BRepAdaptor_Surface& S);
0071 
0072   //! returns the bounds of the Surface.
0073   Standard_EXPORT static void Bounds(const BRepAdaptor_Surface& S,
0074                                      Standard_Real&             U1,
0075                                      Standard_Real&             V1,
0076                                      Standard_Real&             U2,
0077                                      Standard_Real&             V2);
0078 
0079 protected:
0080 private:
0081 };
0082 
0083 #endif // _BRepLProp_SurfaceTool_HeaderFile