bernhard: thuban/Thuban/UI baserenderer.py,1.12,1.13
cvs@intevation.de
cvs at intevation.de
Mon Nov 22 12:16:37 CET 2004
Author: bernhard
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv8365/UI
Modified Files:
baserenderer.py
Log Message:
* Thuban/Model/base.py (UnsetModified):
Fixed some typos in docstring.
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
Added hints on the used algorithm for handling holes.
Index: baserenderer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/baserenderer.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- baserenderer.py 3 Oct 2004 21:45:48 -0000 1.12
+++ baserenderer.py 22 Nov 2004 11:16:35 -0000 1.13
@@ -388,6 +388,8 @@
value of the shape's Points() method. The coordinates in the
DC's coordinate system are determined with
self.projected_points.
+
+ For a description of the algorithm look in wxproj.cpp.
"""
points = self.projected_points(layer, points)
@@ -396,6 +398,7 @@
for part in points:
polygon.extend(part)
+ # missing back vertices for correct filling.
insert_index = len(polygon)
for part in points[:-1]:
polygon.insert(insert_index, part[0])
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)