mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Merge pull request #1327 from techdude/master
Add CONFIG parameter to allow disabling smoothing on ParametricCurve
This commit is contained in:
commit
c2b2cb3b7e
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ class ParametricCurve(VMobject):
|
|||
"epsilon": 1e-8,
|
||||
# TODO, automatically figure out discontinuities
|
||||
"discontinuities": [],
|
||||
"smoothing": True,
|
||||
}
|
||||
|
||||
def __init__(self, t_func, t_range=None, **kwargs):
|
||||
|
@ -41,7 +42,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_smooth()
|
||||
if self.smoothing:
|
||||
self.make_smooth()
|
||||
return self
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue