Point3D
Point3D
represents a singular point in three-dimensional space with optional color, radii, and label. Point3D
entities will be drawn as part of the 3D Spatial SpaceView.
It is compatible with AnnotationContext
. class_id
can be used to provide
colors and labels from the annotation context, and keypoint_id
can be used to make connected edges between points. See
examples in the AnnotationContext
documentation.
Components and APIs
Primary component: point3d
Secondary components: colorrgba
, radius
, label
, classid
, keypointid
Python APIs: log_point, log_points
Rust API: Point3D
Simple Example
"""Log some very simple points.""" import rerun as rr rr.init("rerun_example_points3d", spawn=True) rr.log_points("simple", positions=[[0, 0, 0], [1, 1, 1]])

Full Example
"""Log some random points with color and radii.""" import rerun as rr from numpy.random import default_rng rr.init("rerun_example_points", spawn=True) rng = default_rng(12345) positions = rng.uniform(-5, 5, size=[10, 3]) colors = rng.uniform(0, 255, size=[10, 3]) radii = rng.uniform(0, 1, size=[10]) rr.log_points("random", positions=positions, colors=colors, radii=radii)
