Dodecahedron#
Qualified name: manim.mobject.three\_d.polyhedra.Dodecahedron
- class Dodecahedron(edge_length=1, **kwargs)[source]#
Bases:
PolyhedronA dodecahedron, one of the five platonic solids. It has 12 faces, 30 edges and 20 vertices.
- Parameters
edge_length (float) – The length of an edge between any two vertices.
Examples
Example: DodecahedronScene ¶
from manim import * class DodecahedronScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) obj = Dodecahedron() self.add(obj)
Methods
Attributes
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.