mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Parametric surface should remember what function created it
This commit is contained in:
parent
02413d165a
commit
40e44e6dd7
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue