Change simple quadratic approximation threshold

This commit is contained in:
Grant Sanderson
2023-01-12 19:24:56 -08:00
parent dcdf74a715
commit db8b0e7bce

View File

@ -471,7 +471,7 @@ class VMobject(Mobject):
v1 = handle1 - last
v2 = anchor - handle2
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]
else:
quadratic_approx = get_quadratic_approximation_of_cubic(