diff options
-rw-r--r-- | chroma/make.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/make.py b/chroma/make.py index 0daea78..64ff6e6 100644 --- a/chroma/make.py +++ b/chroma/make.py @@ -144,7 +144,7 @@ def torus(radius, offset, nsteps=64, circle_steps=None): if circle_steps is None: circle_steps = nsteps profile_angles = np.linspace(0, 2*np.pi, circle_steps) - return rotate_extrude(np.cos(profile_angles) + offset, np.sin(profile_angles), nsteps) + return rotate_extrude(radius*np.cos(profile_angles) + offset, radius*np.sin(profile_angles), nsteps) def convex_polygon(x, y): """ |