Back to Rerun

README

examples/cpp/dna/README.md

0.31.41.1 KB
Original Source
<!--[metadata] title = "Helix" tags = ["3D", "API example"] thumbnail = "https://static.rerun.io/dna/40d9744af3f0e21d3b174054f0a935662a574ce0/480w.png" thumbnail_dimensions = [480, 480] channel = "main" -->

Simple example of logging point and line primitives to draw a 3D helix.

<picture> <source media="(max-width: 480px)" srcset="https://static.rerun.io/helix/f4c375546fa9d24f7cd3a1a715ebf75b2978817a/480w.png"> <source media="(max-width: 768px)" srcset="https://static.rerun.io/helix/f4c375546fa9d24f7cd3a1a715ebf75b2978817a/768w.png"> <source media="(max-width: 1024px)" srcset="https://static.rerun.io/helix/f4c375546fa9d24f7cd3a1a715ebf75b2978817a/1024w.png"> <source media="(max-width: 1200px)" srcset="https://static.rerun.io/helix/f4c375546fa9d24f7cd3a1a715ebf75b2978817a/1200w.png"> </picture>

To build it from a checkout of the repository (requires a Rust toolchain):

bash
cmake .
cmake --build . --target example_dna
./examples/cpp/dna/example_dna