From c3ccfbfa65b4f4a43b98e5703cadec41075f363a Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 6 Feb 2021 11:39:19 -0800 Subject: [PATCH] re-introduce make_smoothing option --- manimlib/mobject/functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/functions.py b/manimlib/mobject/functions.py index 26a492a5..d0d64cee 100644 --- a/manimlib/mobject/functions.py +++ b/manimlib/mobject/functions.py @@ -9,6 +9,7 @@ class ParametricCurve(VMobject): "epsilon": 1e-8, # TODO, automatically figure out discontinuities "discontinuities": [], + "use_smoothing": True, } def __init__(self, t_func, t_range=None, **kwargs): @@ -39,7 +40,8 @@ class ParametricCurve(VMobject): points = np.array([self.t_func(t) for t in t_range]) self.start_new_path(points[0]) self.add_points_as_corners(points[1:]) - self.make_approximately_smooth() + if self.use_smoothing: + self.make_approximately_smooth() return self