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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
-- File: LocOpe_CurveShapeIntersector.cdl
-- Created: Mon May 29 15:54:11 1995
-- Author: Jacques GOUSSARD
-- <jag@bravox>
---Copyright: Matra Datavision 1995
class CurveShapeIntersector from LocOpe
---Purpose: This class provides the intersection between an
-- axis or a circle and the faces of a shape. The
-- intersection points are sorted in increasing
-- parameter along the axis.
uses SequenceOfPntFace from LocOpe,
PntFace from LocOpe,
Shape from TopoDS,
Face from TopoDS,
Orientation from TopAbs,
Ax1 from gp,
Circ from gp
raises NotDone from StdFail,
OutOfRange from Standard
is
Create
---Purpose: Empty constructor.
returns CurveShapeIntersector from LocOpe;
---C++: inline
Create(Axis: Ax1 from gp; S:Shape from TopoDS)
---Purpose: Creates and performs the intersection betwwen
-- <Ax1> and <S>.
---C++: inline
returns CurveShapeIntersector from LocOpe;
Create(C: Circ from gp; S:Shape from TopoDS)
---Purpose: Creates and performs yte intersection betwwen
-- <C> and <S>.
---C++: inline
returns CurveShapeIntersector from LocOpe;
Init(me: in out;Axis: Ax1 from gp; S:Shape from TopoDS)
---Purpose: Performs the intersection between <Ax1 and <S>.
is static;
Init(me: in out;C: Circ from gp; S:Shape from TopoDS)
---Purpose: Performs the intersection between <Ax1 and <S>.
is static;
IsDone(me)
---Purpose: Returns <Standard_True> if the intersection has
-- been done.
returns Boolean from Standard
---C++: inline
is static;
NbPoints(me)
---Purpose: Returns the number of intersection point.
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
-- The exception is raised when IsDone returns <Standard_False>.
is static;
Point(me; Index: Integer from Standard)
---Purpose: Returns the intersection point of range <Index>.
-- The points are sorted in increasing order of
-- parameter along the axis.
returns PntFace from LocOpe
---C++: return const&
---C++: inline
raises NotDone from StdFail,
OutOfRange from Standard
is static;
LocalizeAfter(me; From : Real from Standard;
Or : out Orientation from TopAbs;
IndFrom : out Integer from Standard;
IndTo : out Integer from Standard)
---Purpose: Searches the first intersection point located
-- after the parameter <From>, wich orientation is
-- not TopAbs_EXTERNAL. If found, returns
-- <Standard_True>. <Or> contains the orientation of
-- the point, <IndFrom> and <IndTo> represents the
-- interval of index in the sequence of intersection
-- point corresponding to the point. (IndFrom <=
-- IndTo).
--
-- Otherwise, returns <Standard_False>.
returns Boolean from Standard
raises NotDone from StdFail
is static;
LocalizeBefore(me; From : Real from Standard;
Or : out Orientation from TopAbs;
IndFrom : out Integer from Standard;
IndTo : out Integer from Standard)
---Purpose: Searches the first intersection point located
-- before the parameter <From>, wich orientation is
-- not TopAbs_EXTERNAL. If found, returns
-- <Standard_True>. <Or> contains the orientation of
-- the point, <IndFrom> and <IndTo> represents the
-- interval of index in the sequence of intersection
-- point corresponding to the point (IndFrom <=
-- IndTo).
--
-- Otherwise, returns <Standard_False>.
returns Boolean from Standard
raises NotDone from StdFail
is static;
LocalizeAfter(me; FromInd : Integer from Standard;
Or : out Orientation from TopAbs;
IndFrom : out Integer from Standard;
IndTo : out Integer from Standard)
---Purpose: Searches the first intersection point located
-- after the index <FromInd> ( >= FromInd + 1), wich
-- orientation is not TopAbs_EXTERNAL. If found,
-- returns <Standard_True>. <Or> contains the
-- orientation of the point, <IndFrom> and <IndTo>
-- represents the interval of index in the sequence
-- of intersection point corresponding to the
-- point. (IndFrom <= IndTo).
--
-- Otherwise, returns <Standard_False>.
returns Boolean from Standard
raises NotDone from StdFail
is static;
LocalizeBefore(me; FromInd : Integer from Standard;
Or : out Orientation from TopAbs;
IndFrom : out Integer from Standard;
IndTo : out Integer from Standard)
---Purpose: Searches the first intersection point located
-- before the index <FromInd> ( <= FromInd -1), wich
-- orientation is not TopAbs_EXTERNAL. If found,
-- returns <Standard_True>. <Or> contains the
-- orientation of the point, <IndFrom> and <IndTo>
-- represents the interval of index in the sequence
-- of intersection point corresponding to the point
-- (IndFrom <= IndTo).
--
-- Otherwise, returns <Standard_False>.
returns Boolean from Standard
raises NotDone from StdFail
is static;
fields
myDone : Boolean from Standard;
myPoints : SequenceOfPntFace from LocOpe;
end CurveShapeIntersector;
|