blob: 6c88a9ee4fe9bb74ffeb04c24f82eb3933230490 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
-- File : Extrema_CurveCache.cdl
-- Created : Sun Dec 28 2008
-- Author : Roman Lygin
-- roman.lygin@gmail.com
---Copyright: Roman Lygin, Open CASCADE 2008
generic class CurveCache from Extrema
(Curve as any; -- Adaptor3d_Curve or Adaptor2d_Curve2d
Pnt as any; -- gp_Pnt or gp_Pnt2d
ArrayOfPnt as Transient from Standard) -- TColgp_HArray1OfPnt or TColgp_HArray1OfPnt2d
inherits Transient from Standard
---Purpose:
raises NotDone from StdFail
is
Create returns mutable CurveCache from Extrema;
Create (theC: Curve; theUFirst, theULast: Real; theNbSamples: Integer;
theToCalculate: Boolean)returns mutable CurveCache from Extrema;
SetCurve (me: mutable; theC: Curve; theNbSamples: Integer;
theToCalculate: Boolean);
---Purpose: Sets the \a theRank-th curve (1 or 2) and its parameters.
-- Caches sample points for further reuse in Perform().
SetCurve (me: mutable; theC: Curve;
theUFirst, theULast: Real; theNbSamples: Integer; theToCalculate: Boolean);
---Purpose:
SetRange (me: mutable; Uinf, Usup: Real; theToCalculate: Boolean);
---Purpose:
CalculatePoints (me: mutable);
---Purpose: Calculates points along the curve and stores
-- them in internal array for further reuse in Perform().
IsValid (me) returns Boolean;
---C++: inline
---Purpose: Returns True if the points array has already been calculated
-- for specified curve and range
Points (me) returns ArrayOfPnt
raises NotDone from StdFail;
---C++: inline
---C++: return const &
---Purpose: Raises StdFail_NotDone if points have not yet been calculated.
CurvePtr (me) returns Address from Standard;
---C++: inline
---Purpose:
NbSamples (me) returns Integer;
---C++: inline
---Purpose:
FirstParameter (me) returns Real;
---C++: inline
---Purpose:
LastParameter (me) returns Real;
---C++: inline
---Purpose:
TrimFirstParameter (me) returns Real;
---C++: inline
---Purpose: For bounded curves returns FirstParameter(), for unbounded - -1e-10.
TrimLastParameter (me) returns Real;
---C++: inline
---Purpose: For bounded curves returns LastParameter(), for unbounded - 1e-10.
fields
myC : Address from Standard;
myFirst : Real;
myLast : Real;
myTrimFirst : Real;
myTrimLast : Real;
myNbSamples : Integer;
myPntArray : ArrayOfPnt;
myIsArrayValid: Boolean;
end;
|