I’m trying to build a measure tool (does omniverse already has it? I can’t find it) that displays a line between two points. I can already get those two points, and render labels inside viewport by creating ui.Window(name = “Viewport”). I would like to know how do I create a line between two 3D points and display a value on top of this line.
Omniverse View has it: Measure Tool — Omniverse Extensions documentation
In case you want to build anything else, you can use the
omni.ui.scene API to build lines and other shapes.
You can find the documentation here: omni.ui.scene module — kit-sdk 103.1 documentation
We have examples here: GitHub - NVIDIA-Omniverse/kit-extension-sample-ui-scene: Sample Repository to create Kit Extension using the ui.scene API