Mesh

Mesh represents a 3D mesh. It is defined by specifying its vertex positions, and optionally indices, normals, albedo factor, and vertex-colors. Mesh entities will be drawn as part of the 3D Spatial SpaceView.

Components and APIs

Primary component: mesh3d

Secondary components: colorrgba

Python APIs: log_mesh, log_meshes, log_mesh_file

Rust API: Mesh3D

Simple Examples

"""Log a simple colored triangle.""" import rerun as rr rr.init("rerun_example_mesh", spawn=True) rr.log_mesh( "triangle", positions=[ [0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0], ], indices=[0, 1, 2], normals=[ [0.0, 0.0, 1.0], [0.0, 0.0, 1.0], [0.0, 0.0, 1.0], ], vertex_colors=[ [255, 0, 0], [0, 255, 0], [0, 0, 255], ], )