Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Make Mobject.get_critical_point use get_poitns_defining_boundary

Grant Sanderson8e0fae4663df
diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py
index c679239bd..dac35e329 100644
--- a/manimlib/mobject/mobject.py
+++ b/manimlib/mobject/mobject.py
@@ -714,7 +714,7 @@ class Mobject(Container):
def get_critical_point(self, direction):
result = np.zeros(self.dim)
- all_points = self.get_all_points()
+ all_points = self.get_points_defining_boundary()
if len(all_points) == 0:
return result
for dim in range(self.dim):