b311480e |
1 | -- Created on: 2002-08-02 |
2 | -- Created by: Alexander KARTOMIN (akm) |
3 | -- Copyright (c) 2002-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | -- NB: This originates from BRepLProp being abstracted of BRep. |
7fd59977 |
21 | |
22 | class SurfaceTool from LProp3d |
23 | |
24 | uses Pnt from gp, |
25 | Vec from gp, |
26 | HSurface from Adaptor3d |
27 | |
28 | is |
29 | |
30 | Value(myclass; S : HSurface; U, V : Real; P : out Pnt); |
31 | ---Purpose: Computes the point <P> of parameter <U> and <V> on the |
32 | -- HSurface <S>. |
33 | |
34 | D1 (myclass; S : HSurface; U, V : Real; P : out Pnt; D1U, D1V : out Vec); |
35 | ---Purpose: Computes the point <P> and first derivative <D1*> of |
36 | -- parameter <U> and <V> on the HSurface <S>. |
37 | |
38 | D2 (myclass; S : HSurface; U, V : Real; |
39 | P : out Pnt; D1U, D1V, D2U, D2V, DUV : out Vec); |
40 | ---Purpose: Computes the point <P>, the first derivative <D1*> and second |
41 | -- derivative <D2*> of parameter <U> and <V> on the HSurface <S>. |
42 | |
43 | DN (myclass; S : HSurface; U, V : Real; IU, IV : Integer) |
44 | returns Vec; |
45 | |
46 | Continuity(myclass; S : HSurface) returns Integer; |
47 | ---Purpose: returns the order of continuity of the HSurface <S>. |
48 | -- returns 1 : first derivative only is computable |
49 | -- returns 2 : first and second derivative only are computable. |
50 | |
51 | Bounds(myclass; S : HSurface; U1, V1, U2, V2 : out Real); |
52 | ---Purpose: returns the bounds of the HSurface. |
53 | |
54 | end SurfaceTool; |
55 | |
56 | |