diff --git a/manimlib/mobject/types/surface.py b/manimlib/mobject/types/surface.py index 2bb9b569..9ad72fd3 100644 --- a/manimlib/mobject/types/surface.py +++ b/manimlib/mobject/types/surface.py @@ -116,6 +116,8 @@ class Surface(Mobject): return self def get_partial_points_array(self, points, a, b, resolution, axis): + if len(points) == 0: + return points nu, nv = resolution[:2] points = points.reshape(resolution) max_index = resolution[axis] - 1