mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Change simple quadratic approximation threshold
This commit is contained in:
parent
dcdf74a715
commit
db8b0e7bce
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ class VMobject(Mobject):
|
||||||
v1 = handle1 - last
|
v1 = handle1 - last
|
||||||
v2 = anchor - handle2
|
v2 = anchor - handle2
|
||||||
angle = angle_between_vectors(v1, v2)
|
angle = angle_between_vectors(v1, v2)
|
||||||
if self.allow_cubic_to_quad_approx and angle < 45 * DEGREES:
|
if self.allow_cubic_to_quad_approx and angle < 30 * DEGREES:
|
||||||
quadratic_approx = [last, find_intersection(last, v1, anchor, -v2), anchor]
|
quadratic_approx = [last, find_intersection(last, v1, anchor, -v2), anchor]
|
||||||
else:
|
else:
|
||||||
quadratic_approx = get_quadratic_approximation_of_cubic(
|
quadratic_approx = get_quadratic_approximation_of_cubic(
|
||||||
|
|
Loading…
Add table
Reference in a new issue