Link Search Menu Expand Document

Tetrahedron

Draw a Tetrahedron primitive mesh geometry. Tetrahedron is 4-sided polyhedron shape.

Additional Python properties are available in the Tetrahedron API Reference.

The following source code was mirrored from the arena-py tetrahedron.py example.

from arena import *

scene = Scene(host="arenaxr.org", scene="example")

@scene.run_once
def make_tetrahedron():
    my_tet = Tetrahedron(
        object_id="my_tet",
        position=(0, 2, -3),
        scale=(1, 1, 1),
        material=Material(color=(255, 100, 255)),
    )
    scene.add_object(my_tet)

scene.run_tasks()