diff --git a/examples/cpp/dna/main.cpp b/examples/cpp/dna/main.cpp index d7b257c0364c..25b50981fdca 100644 --- a/examples/cpp/dna/main.cpp +++ b/examples/cpp/dna/main.cpp @@ -21,11 +21,11 @@ int main() { rec.set_time("stable_time", 0s); - rec.log( + rec.log_static( "dna/structure/left", rerun::Points3D(points1).with_colors(colors1).with_radii({0.08f}) ); - rec.log( + rec.log_static( "dna/structure/right", rerun::Points3D(points2).with_colors(colors2).with_radii({0.08f}) ); @@ -35,7 +35,7 @@ int main() { lines.emplace_back(rerun::LineStrip3D({points1[i].xyz, points2[i].xyz})); } - rec.log( + rec.log_static( "dna/structure/scaffolding", rerun::LineStrips3D(lines).with_colors(rerun::Color(128, 128, 128)) ); diff --git a/examples/python/dna/dna.py b/examples/python/dna/dna.py index b0d71e7d9a78..06f9730c1ace 100755 --- a/examples/python/dna/dna.py +++ b/examples/python/dna/dna.py @@ -30,10 +30,14 @@ def log_data() -> None: # points and colors are both np.array((NUM_POINTS, 3)) points1, colors1 = build_color_spiral(NUM_POINTS) points2, colors2 = build_color_spiral(NUM_POINTS, angular_offset=tau * 0.5) - rr.log("helix/structure/left", rr.Points3D(points1, colors=colors1, radii=0.08)) - rr.log("helix/structure/right", rr.Points3D(points2, colors=colors2, radii=0.08)) - - rr.log("helix/structure/scaffolding", rr.LineStrips3D(np.stack((points1, points2), axis=1), colors=[128, 128, 128])) + rr.log("helix/structure/left", rr.Points3D(points1, colors=colors1, radii=0.08), static=True) + rr.log("helix/structure/right", rr.Points3D(points2, colors=colors2, radii=0.08), static=True) + + rr.log( + "helix/structure/scaffolding", + rr.LineStrips3D(np.stack((points1, points2), axis=1), colors=[128, 128, 128]), + static=True, + ) time_offsets = np.random.rand(NUM_POINTS) for i in range(400): diff --git a/examples/rust/dna/src/main.rs b/examples/rust/dna/src/main.rs index a5358bd43117..2017ccb405cd 100644 --- a/examples/rust/dna/src/main.rs +++ b/examples/rust/dna/src/main.rs @@ -19,13 +19,13 @@ fn main() -> Result<(), Box> { rec.set_time_seconds("stable_time", 0f64); - rec.log( + rec.log_static( "dna/structure/left", &rerun::Points3D::new(points1.iter().copied()) .with_colors(colors1) .with_radii([0.08]), )?; - rec.log( + rec.log_static( "dna/structure/right", &rerun::Points3D::new(points2.iter().copied()) .with_colors(colors2) @@ -40,7 +40,7 @@ fn main() -> Result<(), Box> { .map(|chunk| chunk.into_iter().collect_vec().try_into().unwrap()) .collect_vec(); - rec.log( + rec.log_static( "dna/structure/scaffolding", &rerun::LineStrips3D::new(points_interleaved.iter().cloned()) .with_colors([rerun::Color::from([128, 128, 128, 255])]),