b311480e |
1 | -- Created on: 2002-08-02 |
2 | -- Created by: Alexander KARTOMIN (akm) |
973c2be1 |
3 | -- Copyright (c) 2002-2014 OPEN CASCADE SAS |
b311480e |
4 | -- |
973c2be1 |
5 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
6 | -- |
973c2be1 |
7 | -- This library is free software; you can redistribute it and / or modify it |
8 | -- under the terms of the GNU Lesser General Public 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. |
b311480e |
12 | -- |
973c2be1 |
13 | -- Alternatively, this file may be used under the terms of Open CASCADE |
14 | -- commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | -- NB: This originates from BRepLProp being abstracted of BRep. |
7fd59977 |
17 | |
18 | class CurveTool from LProp3d |
19 | |
20 | uses Vec from gp, |
21 | Pnt from gp, |
22 | Dir from gp, |
23 | HCurve from Adaptor3d |
24 | |
25 | is |
26 | |
27 | Value(myclass; C : HCurve from Adaptor3d; U : Real; P : out Pnt); |
28 | ---Purpose: Computes the point <P> of parameter <U> on the HCurve <C>. |
29 | |
30 | D1 (myclass; C : HCurve from Adaptor3d; |
31 | U : Real; P : out Pnt; V1 : out Vec); |
32 | ---Purpose: Computes the point <P> and first derivative <V1> of |
33 | -- parameter <U> on the HCurve <C>. |
34 | |
35 | D2 (myclass; C : HCurve from Adaptor3d; |
36 | U : Real; P : out Pnt; V1, V2 : out Vec); |
37 | ---Purpose: Computes the point <P>, the first derivative <V1> and second |
38 | -- derivative <V2> of parameter <U> on the HCurve <C>. |
39 | |
40 | D3 (myclass; C : HCurve from Adaptor3d; |
41 | U : Real; P : out Pnt; V1, V2, V3 : out Vec); |
42 | ---Purpose: Computes the point <P>, the first derivative <V1>, the |
43 | -- second derivative <V2> and third derivative <V3> of |
44 | -- parameter <U> on the HCurve <C>. |
45 | |
46 | Continuity(myclass; C : HCurve from Adaptor3d) returns Integer; |
47 | ---Purpose: returns the order of continuity of the HCurve <C>. |
48 | -- returns 1 : first derivative only is computable |
49 | -- returns 2 : first and second derivative only are computable. |
50 | -- returns 3 : first, second and third are computable. |
51 | |
52 | FirstParameter(myclass; C : HCurve from Adaptor3d) returns Real; |
53 | ---Purpose: returns the first parameter bound of the HCurve. |
54 | -- |
55 | |
56 | LastParameter(myclass; C : HCurve from Adaptor3d) returns Real; |
57 | ---Purpose: returns the last parameter bound of the HCurve. |
58 | -- FirstParameter must be less than LastParamenter. |
59 | |
60 | end CurveTool; |
61 | |
62 | |