mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 05:52:34 +08:00
Mobjects now contain submobjects, giving a heirarchy. Thus CompoundMobject is replaced simply with Mobject, and display etc. needed updating
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import numpy as np
|
||||
import itertools as it
|
||||
|
||||
from mobject import Mobject, Mobject1D, Mobject2D, CompoundMobject
|
||||
from mobject import Mobject, Mobject1D, Mobject2D, Mobject
|
||||
from geometry import Line
|
||||
from helpers import *
|
||||
|
||||
@ -87,7 +87,7 @@ class Dodecahedron(Mobject1D):
|
||||
(x-y+z, v2),
|
||||
(x-y-z, v2),
|
||||
]
|
||||
five_lines_points = CompoundMobject(*[
|
||||
five_lines_points = Mobject(*[
|
||||
Line(pair[0], pair[1], density = 1.0/self.epsilon)
|
||||
for pair in vertex_pairs
|
||||
]).points
|
||||
|
Reference in New Issue
Block a user