388 |
value of the shape's Points() method. The coordinates in the |
value of the shape's Points() method. The coordinates in the |
389 |
DC's coordinate system are determined with |
DC's coordinate system are determined with |
390 |
self.projected_points. |
self.projected_points. |
391 |
|
|
392 |
|
For a description of the algorithm look in wxproj.cpp. |
393 |
""" |
""" |
394 |
points = self.projected_points(layer, points) |
points = self.projected_points(layer, points) |
395 |
|
|
398 |
for part in points: |
for part in points: |
399 |
polygon.extend(part) |
polygon.extend(part) |
400 |
|
|
401 |
|
# missing back vertices for correct filling. |
402 |
insert_index = len(polygon) |
insert_index = len(polygon) |
403 |
for part in points[:-1]: |
for part in points[:-1]: |
404 |
polygon.insert(insert_index, part[0]) |
polygon.insert(insert_index, part[0]) |