Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix shape of torus with non-default `minor_radius` (#1083)

tfglynn8d55eb351b53
diff --git a/manim/mobject/three_dimensions.py b/manim/mobject/three_dimensions.py
index d703e8544..03877fdac 100644
--- a/manim/mobject/three_dimensions.py
+++ b/manim/mobject/three_dimensions.py
@@ -649,4 +649,4 @@ class Torus(ParametricSurface):
def func(self, u, v):
P = np.array([np.cos(u), np.sin(u), 0])
- return (self.R - self.r * np.cos(v)) * P - np.sin(v) * OUT
+ return (self.R - self.r * np.cos(v)) * P - self.r * np.sin(v) * OUT