mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Add CONFIG parameter to allow disabling smoothing
This commit is contained in:
@ -12,6 +12,7 @@ class ParametricFunction(VMobject):
|
|||||||
"dt": 1e-8,
|
"dt": 1e-8,
|
||||||
# TODO, be smarter about figuring these out?
|
# TODO, be smarter about figuring these out?
|
||||||
"discontinuities": [],
|
"discontinuities": [],
|
||||||
|
"smoothing": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, function=None, **kwargs):
|
def __init__(self, function=None, **kwargs):
|
||||||
@ -73,7 +74,8 @@ class ParametricFunction(VMobject):
|
|||||||
if len(points) > 0:
|
if len(points) > 0:
|
||||||
self.start_new_path(points[0])
|
self.start_new_path(points[0])
|
||||||
self.add_points_as_corners(points[1:])
|
self.add_points_as_corners(points[1:])
|
||||||
self.make_smooth()
|
if self.smoothing:
|
||||||
|
self.make_smooth()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user