mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Don't default to smoothing for implicit curves
This commit is contained in:
@ -92,7 +92,7 @@ class ImplicitFunction(VMobject):
|
|||||||
y_range: Tuple[float, float] = (-FRAME_Y_RADIUS, FRAME_Y_RADIUS),
|
y_range: Tuple[float, float] = (-FRAME_Y_RADIUS, FRAME_Y_RADIUS),
|
||||||
min_depth: int = 5,
|
min_depth: int = 5,
|
||||||
max_quads: int = 1500,
|
max_quads: int = 1500,
|
||||||
use_smoothing: bool = True,
|
use_smoothing: bool = False,
|
||||||
joint_type: str = 'no_joint',
|
joint_type: str = 'no_joint',
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
@ -110,7 +110,9 @@ class ImplicitFunction(VMobject):
|
|||||||
max_quads=max_quads,
|
max_quads=max_quads,
|
||||||
) # returns a list of lists of 2D points
|
) # returns a list of lists of 2D points
|
||||||
curves = [
|
curves = [
|
||||||
np.pad(curve, [(0, 0), (0, 1)]) for curve in curves if curve != []
|
np.pad(curve, [(0, 0), (0, 1)])
|
||||||
|
for curve in curves
|
||||||
|
if curve != []
|
||||||
] # add z coord as 0
|
] # add z coord as 0
|
||||||
for curve in curves:
|
for curve in curves:
|
||||||
self.start_new_path(curve[0])
|
self.start_new_path(curve[0])
|
||||||
|
Reference in New Issue
Block a user