A community-maintained Python framework for creating mathematical animations.
Fixed get_points_defining_boundary for VMobjects
Grant Sanderson5d6454fcc272
diff --git a/mobject/types/vectorized_mobject.py b/mobject/types/vectorized_mobject.pyindex 44114c950..1d4efb4b3 100644--- a/mobject/types/vectorized_mobject.py+++ b/mobject/types/vectorized_mobject.py@@ -1,5 +1,5 @@-+import itertools as itfrom colour import Colorfrom mobject.mobject import Mobject@@ -482,7 +482,9 @@ class VMobject(Mobject):return self.points[::3]def get_points_defining_boundary(self):- return self.get_anchors()+ return np.array(list(it.chain(*[+ sm.get_anchors() for sm in self.get_family()+ ])))# Alignmentdef align_points(self, vmobject):