From 60e443e55cd4582594af3d66b44fb1a1948668ed Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 29 Nov 2010 09:17:10 -0500 Subject: [PATCH] Fix GeometryBuilder.make_circle. (report by Islam El Salawi) --- meshpy/geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshpy/geometry.py b/meshpy/geometry.py index 7febefb..5e20e9d 100644 --- a/meshpy/geometry.py +++ b/meshpy/geometry.py @@ -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)), -- GitLab