blob: 280a329da5da5891490d148e6f3c8d82b1c8f788 (
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
127
|
-- File: IntLinTorus.cdl
-- Created: Thu May 16 17:47:17 1991
-- Author: Isabelle GRIGNON
-- <isg@topsn3>
---Copyright: Matra Datavision 1991
class IntLinTorus from IntAna
---Purpose: Intersection between a line and a torus.
uses Lin from gp,
Torus from gp,
Pnt from gp
raises NotDone from StdFail,
OutOfRange from Standard
is
Create
returns IntLinTorus from IntAna;
Create(L : Lin from gp; T : Torus from gp)
---Purpose: Creates the intersection between a line and a torus.
returns IntLinTorus from IntAna;
Perform(me: in out; L : Lin from gp; T : Torus from gp)
---Purpose: Intersects a line and a torus.
is static;
IsDone(me)
---Purpose: Returns True if the computation was successful.
--
---C++: inline
returns Boolean from Standard
is static;
NbPoints(me)
---Purpose: Returns the number of intersection points.
--
---C++: inline
returns Integer from Standard
raises NotDone from StdFail
-- The exception NotDone is raised if IsDone returns False.
is static;
Value(me; Index : Integer from Standard)
---Purpose: Returns the intersection point of range Index.
--
---C++: inline
---C++: return const&
returns Pnt from gp
raises NotDone from StdFail,
OutOfRange from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception OutOfRange is raised if Index <= 0 or
-- Index > NbPoints
is static;
ParamOnLine(me; Index : Integer from Standard)
---Purpose: Returns the parameter on the line of the intersection
-- point of range Index.
--
---C++: inline
returns Real from Standard
raises NotDone from StdFail,
OutOfRange from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception OutOfRange is raised if Index <= 0 or
-- Index > NbPoints
is static;
ParamOnTorus(me; Index : Integer from Standard;
FI,THETA: out Real from Standard)
---Purpose: Returns the parameters on the torus of the intersection
-- point of range Index.
--
---C++: inline
raises NotDone from StdFail,
OutOfRange from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception OutOfRange is raised if Index <= 0 or
-- Index > NbPoints
is static;
fields
done : Boolean from Standard;
nbpt : Integer from Standard;
thePoint: Pnt from gp [4];
theParam: Real from Standard [4];
theFi : Real from Standard [4];
theTheta: Real from Standard [4];
end IntLinTorus;
|