author | Claus Gittinger <cg@exept.de> |
Thu, 09 Jun 2016 18:09:58 +0200 | |
changeset 3934 | 3fc6968232c1 |
parent 2317 | a56b5469246d |
child 4080 | 8b66d15c3473 |
permissions | -rw-r--r-- |
0 | 1 |
" |
4 | 2 |
COPYRIGHT (c) 1988 by Claus Gittinger |
68 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1303 | 12 |
"{ Package: 'stx:libbasic2' }" |
13 |
||
78 | 14 |
Geometric subclass:#Polygon |
252 | 15 |
instanceVariableNames:'vertices' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
1303 | 18 |
category:'Graphics-Geometry-Objects' |
0 | 19 |
! |
20 |
||
135 | 21 |
!Polygon class methodsFor:'documentation'! |
31 | 22 |
|
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1988 by Claus Gittinger |
|
68 | 26 |
All Rights Reserved |
0 | 27 |
|
31 | 28 |
This software is furnished under a license and may be used |
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
Polygon - an array of points |
|
78 | 40 |
|
31 | 41 |
Adds simple boundary checking methods to Array. |
42 |
(needs much more - such as inside check, area computation etc.) |
|
255 | 43 |
|
44 |
[author:] |
|
45 |
Claus Gittinger |
|
267 | 46 |
|
47 |
[see also:] |
|
331 | 48 |
Rectangle EllipticalArc Spline Circle Point LineSegment Curve |
49 |
Arrow ArroedSpline |
|
50 |
GraphicsContext StrokingWrapper FillingWrapper |
|
280 | 51 |
" |
52 |
! |
|
53 |
||
54 |
examples |
|
55 |
" |
|
56 |
simple polygon; filled & unfilled: |
|
57 |
[exBegin] |
|
58 |
|v p| |
|
59 |
||
60 |
v := (View extent:200@200) openAndWait. |
|
61 |
||
62 |
p := Polygon vertices: |
|
63 |
(Array with:(10@10) |
|
64 |
with:(90@90) |
|
65 |
with:(10@90)). |
|
66 |
||
67 |
v scale:2. |
|
68 |
v paint:Color blue. |
|
69 |
p displayFilledOn:v. |
|
70 |
||
71 |
v paint:Color red. |
|
72 |
p displayStrokedOn:v. |
|
73 |
||
74 |
v scale:1; translation:100@0. |
|
75 |
v paint:Color green. |
|
76 |
p displayFilledOn:v. |
|
77 |
||
78 |
v paint:Color black. |
|
79 |
p displayStrokedOn:v. |
|
80 |
[exEnd] |
|
81 |
||
82 |
arbitrary polygon; filled & unfilled: |
|
83 |
[exBegin] |
|
84 |
|v p| |
|
85 |
||
86 |
v := (View extent:200@200) openAndWait. |
|
87 |
v scale:2. |
|
88 |
||
89 |
p := Polygon vertices: |
|
90 |
(Array with:(10@10) |
|
91 |
with:(90@90) |
|
92 |
with:(50@90) |
|
93 |
with:(90@10) |
|
94 |
with:(10@90) |
|
95 |
). |
|
96 |
||
97 |
v paint:Color blue. |
|
98 |
p displayFilledOn:v. |
|
99 |
||
100 |
v paint:Color red. |
|
101 |
p displayStrokedOn:v. |
|
102 |
[exEnd] |
|
31 | 103 |
" |
104 |
! ! |
|
0 | 105 |
|
135 | 106 |
!Polygon class methodsFor:'instance creation'! |
107 |
||
108 |
fromRectangle:aRectangle |
|
280 | 109 |
"return a new polygon, taking the rectangles vertices" |
110 |
||
111 |
^ self new vertices:(aRectangle asPointArray) |
|
135 | 112 |
|
113 |
" |
|
114 |
Polygon fromRectangle:(50@50 corner:100@100) |
|
115 |
" |
|
280 | 116 |
|
117 |
"Modified: 8.5.1996 / 20:15:18 / cg" |
|
135 | 118 |
! |
78 | 119 |
|
120 |
vertices:anArrayOfPoints |
|
280 | 121 |
"return a new polygon, given a collection of vertices" |
122 |
||
78 | 123 |
^ self new vertices:anArrayOfPoints |
124 |
||
125 |
" |
|
126 |
Polygon vertices:(Array with:10@10 |
|
280 | 127 |
with:20@20 |
128 |
with:30@30) |
|
78 | 129 |
|
1430 | 130 |
Polygon vertices:(#(10 10 100 0 50 50) pairWiseCollect:[:x :y | x @ y]). |
131 |
" |
|
132 |
||
133 |
" |
|
134 |
|p v| |
|
135 |
||
136 |
v := View new openAndWait. |
|
137 |
p := Polygon |
|
138 |
vertices:(Array with:10@10 |
|
139 |
with:20@10 |
|
140 |
with:20@30). |
|
141 |
p displayOn:v |
|
78 | 142 |
" |
280 | 143 |
|
144 |
"Modified: 8.5.1996 / 20:11:31 / cg" |
|
135 | 145 |
! ! |
146 |
||
147 |
!Polygon methodsFor:'accessing'! |
|
148 |
||
2317 | 149 |
add:aPoint |
150 |
vertices isNil ifTrue:[ |
|
151 |
vertices := OrderedCollection new |
|
152 |
]. |
|
153 |
vertices add:aPoint |
|
154 |
! |
|
155 |
||
135 | 156 |
vertices |
157 |
"return the array containing my points" |
|
78 | 158 |
|
135 | 159 |
^ vertices |
160 |
! |
|
78 | 161 |
|
135 | 162 |
vertices:anArrayOfPoints |
163 |
"set the array containing my points" |
|
164 |
||
165 |
vertices := anArrayOfPoints |
|
78 | 166 |
! ! |
167 |
||
283 | 168 |
!Polygon methodsFor:'converting'! |
169 |
||
170 |
asPointArray |
|
171 |
"return an array containing my vertex points. |
|
172 |
Notice, that no copy of my vertices is created - you should not |
|
173 |
modify the returned collections points (unless you want to affect |
|
174 |
the polygon ...)." |
|
175 |
||
176 |
^ vertices |
|
177 |
||
178 |
"Modified: 8.5.1996 / 20:43:39 / cg" |
|
179 |
! ! |
|
180 |
||
135 | 181 |
!Polygon methodsFor:'displaying'! |
78 | 182 |
|
135 | 183 |
displayFilledOn:aGC |
267 | 184 |
"display a filled polygin as represented by the receiver in |
185 |
the graphicsContext, aGC" |
|
186 |
||
135 | 187 |
aGC fillPolygon:vertices |
78 | 188 |
|
189 |
" |
|
135 | 190 |
|v| |
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
191 |
v := View new openAndWait. |
135 | 192 |
|
193 |
(Polygon vertices:( |
|
267 | 194 |
Array |
195 |
with:10@10 |
|
196 |
with:60@10 |
|
197 |
with:35@60)) displayFilledOn:v |
|
135 | 198 |
|
199 |
|v| |
|
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
200 |
v := View new openAndWait. |
78 | 201 |
|
135 | 202 |
(Polygon vertices:( |
267 | 203 |
Array |
204 |
with:10@10 |
|
205 |
with:60@10 |
|
206 |
with:35@60 |
|
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
207 |
with:10@10)) displayStrokedOn:v |
78 | 208 |
" |
267 | 209 |
|
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
210 |
"Modified: 8.5.1996 / 14:41:47 / cg" |
78 | 211 |
! |
212 |
||
135 | 213 |
displayStrokedOn:aGC |
267 | 214 |
"display an unfilled polygin as represented by the receiver in |
215 |
the graphicsContext, aGC" |
|
216 |
||
135 | 217 |
aGC displayPolygon:vertices |
218 |
||
219 |
" |
|
220 |
|v| |
|
221 |
||
222 |
v := View new open. |
|
223 |
[v shown] whileFalse:[Processor yield]. |
|
224 |
||
225 |
(Polygon vertices:( |
|
267 | 226 |
Array |
227 |
with:10@10 |
|
228 |
with:60@10 |
|
229 |
with:35@60)) displayStrokedOn:v |
|
135 | 230 |
|
231 |
|v| |
|
232 |
||
233 |
v := View new open. |
|
234 |
[v shown] whileFalse:[Processor yield]. |
|
235 |
||
236 |
(Polygon vertices:( |
|
267 | 237 |
Array |
238 |
with:10@10 |
|
239 |
with:60@10 |
|
240 |
with:35@60 |
|
241 |
with:10@10)) displayStrokedOn:v |
|
135 | 242 |
" |
243 |
||
267 | 244 |
"Modified: 27.4.1996 / 14:52:29 / cg" |
135 | 245 |
! ! |
246 |
||
247 |
!Polygon methodsFor:'enumerating'! |
|
248 |
||
78 | 249 |
edgesDo:aTwoArgBlock |
250 |
"evaluate aTwoArgBlock for each pair of vertices" |
|
251 |
||
252 |
1 to:vertices size-1 do:[:i | |
|
253 |
aTwoArgBlock value:(vertices at:i) value:(vertices at:i+1) |
|
254 |
]. |
|
255 |
||
256 |
" |
|
257 |
|v p| |
|
258 |
||
259 |
v := View new open. |
|
260 |
[v shown] whileFalse:[Processor yield]. |
|
261 |
||
262 |
p := Polygon vertices:(Array with:5@5 |
|
263 |
with:50@5 |
|
264 |
with:30@30 |
|
265 |
with:5@5). |
|
266 |
||
267 |
p displayOn:v. |
|
268 |
(Delay forSeconds:3) wait. |
|
269 |
||
270 |
p edgesDo:[:p1 :p2 | v lineWidth:3. v displayLineFrom:p1 to:p2] |
|
271 |
" |
|
272 |
! |
|
273 |
||
135 | 274 |
verticesDo:aBlock |
275 |
"evaluate aBlock for each point" |
|
276 |
||
277 |
vertices do:aBlock |
|
278 |
||
279 |
" |
|
280 |
|v p| |
|
281 |
||
282 |
v := View new open. |
|
283 |
[v shown] whileFalse:[Processor yield]. |
|
78 | 284 |
|
135 | 285 |
p := Polygon vertices:(Array with:5@5 |
286 |
with:50@5 |
|
287 |
with:30@30 |
|
288 |
with:5@5). |
|
289 |
||
290 |
p displayOn:v. |
|
291 |
(Delay forSeconds:3) wait. |
|
292 |
||
293 |
p verticesDo:[:p | v displayRectangleX:p x -3 y:p y -3 width:6 height:6] |
|
294 |
" |
|
78 | 295 |
! ! |
296 |
||
135 | 297 |
!Polygon methodsFor:'queries'! |
0 | 298 |
|
299 |
bottom |
|
14 | 300 |
"return the bottom boundary of the polygon, |
301 |
that is the maximum y coordinate of all its points" |
|
302 |
||
78 | 303 |
(vertices size == 0) ifTrue: [^ nil]. |
304 |
^ vertices inject:(vertices at:1) y into:[:maxSoFar :p | maxSoFar max:(p y)] |
|
0 | 305 |
|
78 | 306 |
" |
307 |
(Polygon vertices:( |
|
308 |
Array |
|
309 |
with:10@10 |
|
310 |
with:60@10 |
|
311 |
with:35@60)) bottom |
|
312 |
" |
|
0 | 313 |
! |
314 |
||
490
ef43c7a69346
added dummy Scale & InverseScale classVars.
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
315 |
computeBounds |
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
316 |
"return the smallest enclosing rectangle" |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
317 |
|
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
318 |
|minX maxX minY maxY t n "{ Class: SmallInteger }" | |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
319 |
|
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
320 |
n := vertices size. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
321 |
n == 0 ifTrue:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
322 |
^ nil "/ mhmh - should we return an empty rectangle here ? |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
323 |
]. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
324 |
t := vertices at:1. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
325 |
minX := maxX := t x. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
326 |
minY := maxY := t y. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
327 |
2 to:n do:[:i | |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
328 |
|x y t| |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
329 |
|
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
330 |
t := vertices at:i. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
331 |
x := t x. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
332 |
y := t y. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
333 |
x < minX ifTrue:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
334 |
minX := x. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
335 |
] ifFalse:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
336 |
x > maxX ifTrue:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
337 |
maxX := x. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
338 |
] |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
339 |
]. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
340 |
y < minY ifTrue:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
341 |
minY := y. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
342 |
] ifFalse:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
343 |
y > maxY ifTrue:[ |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
344 |
maxY := y. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
345 |
] |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
346 |
]. |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
347 |
]. |
283 | 348 |
^ Rectangle left:minX top:minY right:maxX bottom:maxY. |
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
349 |
|
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
350 |
" |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
351 |
|p| |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
352 |
|
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
353 |
p := (Polygon vertices:( |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
354 |
Array |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
355 |
with:10@10 |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
356 |
with:60@10 |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
357 |
with:35@60)). |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
358 |
p bounds |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
359 |
" |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
360 |
|
283 | 361 |
"Modified: 8.5.1996 / 20:51:42 / cg" |
490
ef43c7a69346
added dummy Scale & InverseScale classVars.
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
362 |
"Created: 12.2.1997 / 11:44:11 / cg" |
276
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
363 |
! |
e104a0359515
comments & more Geometric functionality
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
364 |
|
2091 | 365 |
containsPoint:aPoint |
366 |
"return true, if the argument, aPoint is contained in the receiver" |
|
367 |
||
368 |
|angle pPrev p1 p2 angle2D| |
|
369 |
||
370 |
angle2D := [:p1 :p2 | |
|
371 |
"/ Return the angle between two vectors on a plane |
|
372 |
"/ The angle is from vector 1 to vector 2, positive anticlockwise |
|
373 |
"/ The result is between -pi -> pi |
|
374 |
|theta theta1 theta2| |
|
375 |
||
376 |
theta1 := p1 x arcTan2:p1 y. |
|
377 |
theta2 := p2 x arcTan2:p2 y. |
|
378 |
theta := theta2 - theta1. |
|
379 |
[theta > Float pi] whileTrue:[ |
|
380 |
theta := theta - (Float pi * 2) |
|
381 |
]. |
|
382 |
[ theta < (Float pi negated) ] whileTrue:[ |
|
383 |
theta := theta + (Float pi * 2) |
|
384 |
]. |
|
385 |
theta |
|
386 |
]. |
|
387 |
||
388 |
angle := 0. |
|
389 |
||
390 |
pPrev := vertices last. |
|
391 |
vertices do:[:pI | |
|
392 |
p1 := pPrev - aPoint. |
|
393 |
p2 := pI - aPoint. |
|
394 |
angle := angle + (angle2D value:p1 value:p2). |
|
395 |
pPrev := pI. |
|
396 |
]. |
|
397 |
||
398 |
^ angle abs >= Float pi |
|
399 |
||
400 |
" |
|
401 |
|p| |
|
402 |
||
403 |
p := Polygon vertices:(Array |
|
404 |
with:10@10 |
|
405 |
with:30@10 |
|
406 |
with:20@20). |
|
407 |
TestCase assert:(p containsPoint:14@11). |
|
408 |
TestCase assert:(p containsPoint:15@15). |
|
409 |
TestCase assert:(p containsPoint:5@15) not. |
|
410 |
TestCase assert:(p containsPoint:15@5) not. |
|
411 |
TestCase assert:(p containsPoint:30@15) not. |
|
412 |
TestCase assert:(p containsPoint:20@15). |
|
413 |
" |
|
414 |
! |
|
415 |
||
0 | 416 |
left |
14 | 417 |
"return the left boundary of the polygon, |
418 |
that is the minimum x coordinate of all its points" |
|
419 |
||
78 | 420 |
(vertices size == 0) ifTrue: [^ nil]. |
421 |
^ vertices inject:(vertices at:1) x into:[:minSoFar :p | minSoFar min:(p x)] |
|
0 | 422 |
|
78 | 423 |
" |
424 |
(Polygon vertices:( |
|
425 |
Array |
|
426 |
with:10@10 |
|
427 |
with:60@10 |
|
428 |
with:35@60)) left |
|
429 |
" |
|
430 |
||
0 | 431 |
! |
432 |
||
433 |
right |
|
14 | 434 |
"return the right boundary of the polygon, |
88 | 435 |
that is the maximum x coordinate of all its points" |
14 | 436 |
|
78 | 437 |
(vertices size == 0) ifTrue: [^ nil]. |
438 |
^ vertices inject:(vertices at:1) x into:[:maxSoFar :p | maxSoFar max:(p x)] |
|
439 |
||
440 |
" |
|
441 |
(Polygon vertices:( |
|
442 |
Array |
|
443 |
with:10@10 |
|
444 |
with:60@10 |
|
445 |
with:35@60)) right |
|
446 |
" |
|
447 |
||
135 | 448 |
! |
78 | 449 |
|
135 | 450 |
top |
451 |
"return the top boundary of the polygon, |
|
452 |
that is the minimum y coordinate of all its points" |
|
78 | 453 |
|
135 | 454 |
(vertices size == 0) ifTrue: [^ nil]. |
455 |
^ vertices inject:(vertices at:1) y into:[:minSoFar :p | minSoFar min:(p y)] |
|
78 | 456 |
|
457 |
" |
|
458 |
(Polygon vertices:( |
|
459 |
Array |
|
460 |
with:10@10 |
|
461 |
with:60@10 |
|
135 | 462 |
with:35@60)) top |
78 | 463 |
" |
464 |
||
135 | 465 |
! ! |
78 | 466 |
|
2158 | 467 |
!Polygon methodsFor:'testing'! |
468 |
||
469 |
canBeFilled |
|
470 |
"return true, if the receiver can be drawn as a filled geometric. |
|
471 |
Always true here." |
|
472 |
||
473 |
^ true |
|
474 |
||
475 |
"Created: 8.5.1996 / 08:16:53 / cg" |
|
476 |
! ! |
|
477 |
||
135 | 478 |
!Polygon class methodsFor:'documentation'! |
78 | 479 |
|
135 | 480 |
version |
2317 | 481 |
^ '$Header: /cvs/stx/stx/libbasic2/Polygon.st,v 1.29 2009-10-26 21:15:19 cg Exp $' |
482 |
! |
|
483 |
||
484 |
version_CVS |
|
485 |
^ '$Header: /cvs/stx/stx/libbasic2/Polygon.st,v 1.29 2009-10-26 21:15:19 cg Exp $' |
|
0 | 486 |
! ! |