Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Parametric surface should remember what function created it

Grant Sanderson40e44e6dd7f7
diff --git a/manimlib/mobject/three_dimensions.py b/manimlib/mobject/three_dimensions.py
index 81bc84c6b..7b49ec39f 100644
--- a/manimlib/mobject/three_dimensions.py
+++ b/manimlib/mobject/three_dimensions.py
@@ -33,6 +33,7 @@ class ParametricSurface(VGroup):
def __init__(self, func, **kwargs):
VGroup.__init__(self, **kwargs)
+ self.func = func
self.setup_in_uv_space()
self.apply_function(lambda p: func(p[0], p[1]))
if self.should_make_jagged: