Fixed #139, Polygon aperture twice as large.

This commit is contained in:
Juan Pablo Caram 2015-08-29 22:30:58 -04:00
parent 6cf552021a
commit 6fa0e91875

View File

@ -2029,8 +2029,8 @@ class Gerber (Geometry):
n_vertices = aperture['nVertices']
points = []
for i in range(0, n_vertices):
x = loc[0] + diam * (cos(2 * pi * i / n_vertices))
y = loc[1] + diam * (sin(2 * pi * i / n_vertices))
x = loc[0] + 0.5 * diam * (cos(2 * pi * i / n_vertices))
y = loc[1] + 0.5 * diam * (sin(2 * pi * i / n_vertices))
points.append((x, y))
ply = Polygon(points)
if 'rotation' in aperture: