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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
-- File: IntPolyh_Intersection.cdl
-- Created: Wed Mar 3 11:23:52 1999
-- Author: Fabrice SERVANT
-- <fst@cleox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1999
-- Modified by skv - Thu Sep 25 17:57:09 2003 OCC567
-- Add two private methods: PerformMaillage(..) and MergeCouples(..) and several
-- private fields. Removed field MaillageS.
-- The method MergeCouples(..) is used
-- to remove same couples of interferable triangles from different
-- MaillageAffinage's in order to avoid taking them into section lines several
-- times.
class Intersection from IntPolyh
uses
Pnt from gp,
HSurface from Adaptor3d,
Array1OfReal from TColStd,
Point from IntPolyh,
Edge from IntPolyh,
Triangle from IntPolyh,
ArrayOfPoints from IntPolyh,
ArrayOfEdges from IntPolyh,
ArrayOfTriangles from IntPolyh,
PMaillageAffinage from IntPolyh,
SectionLine from IntPolyh,
ArrayOfSectionLines from IntPolyh,
--TangentZones from IntPolyh, On utilise la classe StartPoint
ArrayOfTangentZones from IntPolyh,
ArrayOfCouples from IntPolyh
is
Create(S1,S2 : HSurface from Adaptor3d);
---Purpose: Constructor
--
--
Create(S1 : HSurface from Adaptor3d;
NbSU1,NbSV1 : Integer from Standard;
S2 : HSurface from Adaptor3d;
NbSU2,NbSV2 : Integer from Standard);
---Purpose: NbSU1 ... NbSV2 are used to compute the initial
-- samples of the iso parametric meshes on the
-- surfaces.
Create(S1 : HSurface from Adaptor3d;
anUpars1, aVpars1 : Array1OfReal from TColStd;
S2 : HSurface from Adaptor3d;
anUpars2, aVpars2 : Array1OfReal from TColStd);
---Purpose: D1, D2 are used to compute the initial
-- samples of the iso parametric meshes on the
-- surfaces.
Perform(me: in out)
---Purpose: Compute the intersection.
is static;
Perform(me: in out;
Upars1, Vpars1, Upars2, Vpars2 : Array1OfReal from TColStd)
---Purpose: Compute the intersection.
is static;
IsDone(me)
returns Boolean from Standard
is static;
---------------------------------------------------------------
NbSectionLines(me)
returns Integer from Standard
is static;
NbPointsInLine(me; IndexLine: Integer from Standard)
returns Integer from Standard
is static;
GetLinePoint(me; IndexLine,IndexPoint: Integer from Standard;
x,y,z,u1,v1,u2,v2,incidence : out Real from Standard)
is static;
---------------------------------------------------------------
NbTangentZones(me)
returns Integer from Standard
is static;
NbPointsInTangentZone(me; IndexLine: Integer from Standard)
returns Integer from Standard
is static;
GetTangentZonePoint(me; IndexLine,IndexPoint: Integer from Standard;
x,y,z,u1,v1,u2,v2 : out Real from Standard)
is static;
-- Modified by skv - Thu Sep 25 17:57:09 2003 OCC567 Begin
PerformMaillage(me: in out;
isFirstFwd : Boolean from Standard;
isSecondFwd : Boolean from Standard;
MaillageS : in out PMaillageAffinage from IntPolyh)
---Purpose: Computes MaillageAffinage
returns Boolean from Standard
is static private;
PerformMaillage(me: in out; MaillageS: in out PMaillageAffinage from IntPolyh)
---Purpose: The method PerformMaillage(..) is used to compute MaillageAffinage. It is
-- called four times (two times for each surface) for creation of inscribed
-- and circumscribed mesh for each surface.
returns Boolean from Standard
is static private;
-- Modified by skv - Thu Sep 25 17:57:09 2003 OCC567 Begin
PerformMaillage(me: in out;
isFirstFwd : Boolean from Standard;
isSecondFwd : Boolean from Standard;
Upars1, Vpars1, Upars2, Vpars2 : Array1OfReal from TColStd;
MaillageS : in out PMaillageAffinage from IntPolyh)
---Purpose: Computes MaillageAffinage
returns Boolean from Standard
is static private;
PerformMaillage(me: in out; Upars1, Vpars1, Upars2, Vpars2 : Array1OfReal from TColStd;
MaillageS: in out PMaillageAffinage from IntPolyh)
---Purpose: The method PerformMaillage(..) is used to compute MaillageAffinage. It is
-- called four times (two times for each surface) for creation of inscribed
-- and circumscribed mesh for each surface.
returns Boolean from Standard
is static private;
MergeCouples(me; anArrayFF: in out ArrayOfCouples from IntPolyh;
anArrayFR: in out ArrayOfCouples from IntPolyh;
anArrayRF: in out ArrayOfCouples from IntPolyh;
anArrayRR: in out ArrayOfCouples from IntPolyh)
---Purpose: This method analyzes arrays to find same couples. If some
-- are detected it leaves the couple in only one array
-- deleting from others.
is static private;
-- Modified by skv - Thu Sep 25 17:57:11 2003 OCC567 End
-- ofv from
PerformStd(me: in out;
MaillageS: in out PMaillageAffinage from IntPolyh;
NbCouples: in out Integer from Standard)
---Purpose: Process default interference
returns Boolean from Standard
is static private;
PerformAdv(me: in out;
MaillageFF: in out PMaillageAffinage from IntPolyh;
MaillageFR: in out PMaillageAffinage from IntPolyh;
MaillageRF: in out PMaillageAffinage from IntPolyh;
MaillageRR: in out PMaillageAffinage from IntPolyh;
NbCouples : in out Integer from Standard)
---Purpose: Process advanced interference
returns Boolean from Standard
is static private;
PerformStd(me: in out;
Upars1, Vpars1, Upars2, Vpars2 : Array1OfReal from TColStd;
MaillageS: in out PMaillageAffinage from IntPolyh;
NbCouples: in out Integer from Standard)
---Purpose: Process default interference
returns Boolean from Standard
is static private;
PerformAdv(me: in out;
Upars1, Vpars1, Upars2, Vpars2 : Array1OfReal from TColStd;
MaillageFF: in out PMaillageAffinage from IntPolyh;
MaillageFR: in out PMaillageAffinage from IntPolyh;
MaillageRF: in out PMaillageAffinage from IntPolyh;
MaillageRR: in out PMaillageAffinage from IntPolyh;
NbCouples : in out Integer from Standard)
---Purpose: Process advanced interference
returns Boolean from Standard
is static private;
-- ofv to
fields
done : Boolean from Standard;
nbsectionlines : Integer from Standard;
nbtangentzones : Integer from Standard;
TSectionLines : ArrayOfSectionLines from IntPolyh;
TTangentZones : ArrayOfTangentZones from IntPolyh;
-- Modified by skv - Thu Sep 25 17:38:57 2003 OCC567 Begin
-- MaillageS : MaillageAffinage from IntPolyh;
myNbSU1 : Integer from Standard;
myNbSV1 : Integer from Standard;
myNbSU2 : Integer from Standard;
myNbSV2 : Integer from Standard;
-- Modified by skv - Thu Sep 25 17:38:58 2003 OCC567 End
mySurf1 : HSurface from Adaptor3d;
mySurf2 : HSurface from Adaptor3d;
end Intersection from IntPolyh;
|