Skip to content
Snippets Groups Projects
Commit 60e443e5 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix GeometryBuilder.make_circle. (report by Islam El Salawi)

parent 0c9e7270
No related branches found
No related tags found
No related merge requests found
......@@ -243,8 +243,8 @@ def make_circle(r, center=(0,0), subdivisions=40):
phi = numpy.linspace(0, 2*numpy.pi, num=subdivisions, endpoint=False)
cx, cy = center
x = numpy.cos(phi) + cx
y = numpy.sin(phi) + cy
x = r*numpy.cos(phi) + cx
y = r*numpy.sin(phi) + cy
return ([numpy.array(pt) for pt in zip(x, y)],
round_trip_connect(range(subdivisions)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment