mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Tighter (albeit arbitrary) constraint on path end detection
This is really not great
This commit is contained in:
parent
827f4db5e2
commit
cd5c436ce4
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue