blob: 34cf872ff7e61fcd089f10dc7e3e19155949a44c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
-- File: Geom2dLProp_CurAndInf2d.cdl
-- Created: Tue Sep 6 14:37:18 1994
-- Author: Yves FRICAUD
-- <yfr@ecolox>
---Copyright: Matra Datavision 1994
class CurAndInf2d from Geom2dLProp inherits CurAndInf from LProp
---Purpose: An algorithm for computing local properties of a curve.
-- These properties include:
-- - the maximum and minimum curvatures
-- - the inflection points.
-- A CurAndInf2d object provides the framework for:
-- - defining the curve to be analyzed
-- - implementing the computation algorithms
-- - consulting the results.
uses
Curve from Geom2d
is
Create;
--- Purpose: Initializes the framework.
-- Note: The curve on which the local properties are
-- computed is defined using one of the following
-- functions: Perform, PerformCurExt or PerformInf.
Perform (me : in out; C : Curve)
---Purpose: For the curve C, Computes both the
-- inflection points and the maximum and minimum curvatures.
is static;
PerformCurExt (me : in out; C : Curve)
---Purpose: For the curve C, Computes the locals extremas of curvature.
is static;
PerformInf (me : in out; C : Curve)
---Purpose: For the curve C, Computes the inflections.
-- After computation, the following functions can be used:
-- - IsDone to check if the computation was successful
-- - NbPoints to obtain the number of computed particular points
-- - Parameter to obtain the parameter on the curve for
-- each particular point
-- - Type to check if the point is an inflection point or an
-- extremum of curvature of the curve C.
-- Warning
-- These functions can be used to analyze a series of
-- curves, however it is necessary to clear the table of
-- results between each computation.
is static;
IsDone (me) returns Boolean
---Purpose: True if the solutions are found.
is static;
fields
isDone : Boolean from Standard;
end CurAndInf2d;
|