Tetrahedron#

Qualified name: manim.mobject.three\_d.polyhedra.Tetrahedron

class Tetrahedron(edge_length=1, **kwargs)[source]#

Bases: manim.mobject.three_d.polyhedra.Polyhedron

A tetrahedron, one of the five platonic solids. It has 4 faces, 6 edges, and 4 vertices.

Parameters

edge_length (float) – The length of an edge between any two vertices.

Examples

Example: TetrahedronScene

../_images/TetrahedronScene-1.png
from manim import *

class TetrahedronScene(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
        obj = Tetrahedron()
        self.add(obj)

Methods

Attributes

animate

Used to animate the application of any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

If there are multiple colors (for gradient) this returns the first one

height

The height of the mobject.

sheen_factor

stroke_color

width

The width of the mobject.