mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
Pre-matrix rewrite of chapter 11
This commit is contained in:
@ -497,6 +497,9 @@ class Mobject(object):
|
||||
def __iter__(self):
|
||||
return iter(self.split())
|
||||
|
||||
def __len__(self):
|
||||
return len(self.split())
|
||||
|
||||
def split(self):
|
||||
result = [self] if len(self.points) > 0 else []
|
||||
return result + self.submobjects
|
||||
|
Reference in New Issue
Block a user