blob: 5d69cb95311e66d66a07789b34aa3128ccc44735 (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
-- File: IntTools_Curve.cdl
-- Created: Thu Nov 23 15:00:22 2000
-- Author: Michael KLOKOV
-- <mkk@redfox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2000
class Curve from IntTools
uses
Curve from Geom,
Curve from Geom2d,
Pnt from gp,
CurveType from GeomAbs
is
Create
returns Curve from IntTools;
---Purpose:
--- Empty constructor
---
Create(Curve3d: Curve from Geom;
FirstCurve2d : Curve from Geom2d;
SecondCurve2d: Curve from Geom2d)
returns Curve from IntTools;
---Purpose:
--- Initializes me by a 3d curve
--- and two 2d curves
---
SetCurves(me: in out;
Curve3d: Curve from Geom;
FirstCurve2d : Curve from Geom2d;
SecondCurve2d : Curve from Geom2d);
---Purpose:
--- Modifier
---
SetCurve(me: in out;
Curve3d: Curve from Geom);
---C++: inline
---Purpose:
--- Modifier
---
SetFirstCurve2d(me: in out;
FirstCurve2d: Curve from Geom2d);
---C++: inline
---Purpose:
--- Modifier
---
SetSecondCurve2d(me: in out;
SecondCurve2d: Curve from Geom2d);
---C++: inline
---Purpose:
--- Modifier
---
Curve(me)
returns any Curve from Geom;
---C++: return const &
---C++: inline
---Purpose:
--- Selector
---
FirstCurve2d(me)
returns any Curve from Geom2d;
---C++: return const &
---C++: inline
---Purpose:
--- Selector
---
SecondCurve2d(me)
returns any Curve from Geom2d;
---C++: return const &
---C++: inline
---Purpose:
--- Selector
---
HasBounds (me)
returns Boolean from Standard;
---Purpose:
--- Returns true if 3d curve is BoundedCurve from Geom
---
Bounds (me; aT1:out Real from Standard;
aT2:out Real from Standard;
aP1:out Pnt from gp;
aP2:out Pnt from gp);
---Purpose:
--- Returns boundary parameters
--- and corresponded 3d point.
---
-- Warning:
--- If HasBounds returns false
--- the returned parameters are equal
--- to zero.
---
D0 (me;
aT1:out Real from Standard;
aP1:out Pnt from gp)
returns Boolean from Standard;
---Purpose:
--- Computes 3d point corresponded to parameter aT1
--- Returns true if given parameter aT1
--- is inside the boundaries of the curve
---
Type (me)
returns CurveType from GeomAbs;
---Purpose:
--- Returns the type of 3d curve
---
fields
my3dCurve : Curve from Geom;
my2dCurve1: Curve from Geom2d;
my2dCurve2: Curve from Geom2d;
end Curve from IntTools;
|