1 // Created on: 1994-02-24
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1994-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.
18 #include <Adaptor3d_HSurface.hxx>
21 #include <LProp3d_SurfaceTool.hxx>
23 //=======================================================================
26 //=======================================================================
27 void LProp3d_SurfaceTool::Value(const Handle(Adaptor3d_HSurface)& S,
28 const Standard_Real U,
29 const Standard_Real V,
36 //=======================================================================
39 //=======================================================================
41 void LProp3d_SurfaceTool::D1(const Handle(Adaptor3d_HSurface)& S,
42 const Standard_Real U,
43 const Standard_Real V,
48 S->D1(U, V, P, D1U, D1V);
52 //=======================================================================
55 //=======================================================================
57 void LProp3d_SurfaceTool::D2(const Handle(Adaptor3d_HSurface)& S,
58 const Standard_Real U,
59 const Standard_Real V,
67 S->D2(U, V, P, D1U, D1V, D2U, D2V, DUV);
70 //=======================================================================
73 //=======================================================================
74 gp_Vec LProp3d_SurfaceTool::DN(const Handle(Adaptor3d_HSurface)& S,
75 const Standard_Real U,
76 const Standard_Real V,
77 const Standard_Integer IU,
78 const Standard_Integer IV)
80 return S->DN(U, V, IU, IV);
84 //=======================================================================
85 //function : Continuity
87 //=======================================================================
89 Standard_Integer LProp3d_SurfaceTool::Continuity
90 (const Handle(Adaptor3d_HSurface)& S)
92 GeomAbs_Shape s = (GeomAbs_Shape) Min(S->UContinuity(),S->VContinuity());
113 //=======================================================================
116 //=======================================================================
118 void LProp3d_SurfaceTool::Bounds(const Handle(Adaptor3d_HSurface)& S,
124 U1 = S->FirstUParameter();
125 V1 = S->FirstVParameter();
126 U2 = S->LastUParameter();
127 V2 = S->LastVParameter();