1 // Created on: 2002-08-02
2 // Created by: Alexander KARTOMIN (akm)
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _LProp3d_SurfaceTool_HeaderFile
17 #define _LProp3d_SurfaceTool_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Standard_Real.hxx>
24 #include <Standard_Integer.hxx>
25 class Adaptor3d_HSurface;
31 class LProp3d_SurfaceTool
38 //! Computes the point <P> of parameter <U> and <V> on the
40 Standard_EXPORT static void Value (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P);
42 //! Computes the point <P> and first derivative <D1*> of
43 //! parameter <U> and <V> on the HSurface <S>.
44 Standard_EXPORT static void D1 (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V);
46 //! Computes the point <P>, the first derivative <D1*> and second
47 //! derivative <D2*> of parameter <U> and <V> on the HSurface <S>.
48 Standard_EXPORT static void D2 (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& DUV);
50 Standard_EXPORT static gp_Vec DN (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, const Standard_Integer IU, const Standard_Integer IV);
52 //! returns the order of continuity of the HSurface <S>.
53 //! returns 1 : first derivative only is computable
54 //! returns 2 : first and second derivative only are computable.
55 Standard_EXPORT static Standard_Integer Continuity (const Handle(Adaptor3d_HSurface)& S);
57 //! returns the bounds of the HSurface.
58 Standard_EXPORT static void Bounds (const Handle(Adaptor3d_HSurface)& S, Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2);
83 #endif // _LProp3d_SurfaceTool_HeaderFile