b311480e |
1 | -- Created on: 1994-09-02 |
2 | -- Created by: Yves FRICAUD |
3 | -- Copyright (c) 1994-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
a104bb8f |
17 | class NumericCurInf2d from Geom2dLProp |
18 | |
19 | ---Purpose: Computes the locals extremas of curvature and the |
20 | -- inflections of a bounded curve in 2d. |
7fd59977 |
21 | |
22 | uses |
a104bb8f |
23 | CurAndInf from LProp, |
24 | Curve from Geom2d, |
25 | Vec2d from gp, |
26 | Pnt2d from gp, |
27 | Dir2d from gp, |
28 | Curve2dTool from Geom2dLProp |
7fd59977 |
29 | |
7fd59977 |
30 | is |
a104bb8f |
31 | |
7fd59977 |
32 | Create; |
33 | |
a104bb8f |
34 | PerformCurExt (me : in out; C : Curve from Geom2d; Result : in out CurAndInf) |
7fd59977 |
35 | ---Purpose: Computes the locals extremas of curvature. |
36 | is static; |
37 | |
a104bb8f |
38 | PerformInf (me : in out; C : Curve from Geom2d; Result : in out CurAndInf) |
7fd59977 |
39 | ---Purpose: Computes the inflections. |
40 | is static; |
41 | |
42 | PerformCurExt (me : in out; |
a104bb8f |
43 | C : Curve from Geom2d ; |
7fd59977 |
44 | UMin : Real; |
45 | UMax : Real; |
46 | Result : in out CurAndInf) |
47 | ---Purpose: Computes the locals extremas of curvature. |
48 | -- in the interval of parmeters [UMin,UMax]. |
49 | is static; |
50 | |
51 | PerformInf (me : in out; |
a104bb8f |
52 | C : Curve from Geom2d ; |
7fd59977 |
53 | UMin : Real; |
54 | UMax : Real; |
55 | Result : in out CurAndInf) |
56 | ---Purpose: Computes the inflections in the interval of |
57 | -- parmeters [UMin,UMax]. |
58 | is static; |
59 | |
60 | IsDone (me) returns Boolean |
61 | ---Purpose: True if the solutions are found. |
62 | is static; |
63 | |
64 | fields |
65 | isDone : Boolean from Standard; |
66 | |
a104bb8f |
67 | end NumericCurInf2d; |