From cd5c436ce46b1ecda86a02b0ce9be48a5ef7e5e3 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 26 Aug 2024 09:14:42 -0500 Subject: [PATCH] Tighter (albeit arbitrary) constraint on path end detection This is really not great --- manimlib/mobject/types/vectorized_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index f2fa12b6..eb801f20 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -726,7 +726,7 @@ class VMobject(Mobject): return self.get_bezier_tuples_from_points(self.get_points()) def get_subpath_end_indices_from_points(self, points: Vect3Array) -> np.ndarray: - atol = self.tolerance_for_point_equality + atol = 1e-4 # TODO, this is too unsystematic a0, h, a1 = points[0:-1:2], points[1::2], points[2::2] # An anchor point is considered the end of a path # if its following handle is sitting on top of it.