1 // Created on: 1992-08-18
2 // Created by: Herve LEGRAND
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <GeomLProp_SurfaceTool.ixx>
18 #include <Geom_Surface.hxx>
19 #include <GeomAbs_Shape.hxx>
22 void GeomLProp_SurfaceTool::Value(const Handle(Geom_Surface)& S,
23 const Standard_Real U, const Standard_Real V, gp_Pnt& P)
28 void GeomLProp_SurfaceTool::D1(const Handle(Geom_Surface)& S,
29 const Standard_Real U, const Standard_Real V,
30 gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V)
32 S->D1(U, V, P, D1U, D1V);
35 void GeomLProp_SurfaceTool::D2(const Handle(Geom_Surface)& S,
36 const Standard_Real U, const Standard_Real V,
37 gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& DUV)
39 S->D2(U, V, P, D1U, D1V, D2U, D2V, DUV);
42 //=======================================================================
45 //=======================================================================
46 gp_Vec GeomLProp_SurfaceTool::DN(const Handle(Geom_Surface)& S,
47 const Standard_Real U,
48 const Standard_Real V,
49 const Standard_Integer IU,
50 const Standard_Integer IV)
52 return S->DN(U, V, IU, IV);
55 Standard_Integer GeomLProp_SurfaceTool::Continuity(const Handle(Geom_Surface)& S)
57 GeomAbs_Shape s = S->Continuity();
77 void GeomLProp_SurfaceTool::Bounds(const Handle(Geom_Surface)& S,
78 Standard_Real& U1, Standard_Real& V1,
79 Standard_Real& U2, Standard_Real& V2)
81 S->Bounds(U1, U2, V1, V2);