ArrowsΒΆ
This example visualizes a large number of coordinates markers.
from asyncio import sleep
from vuer import Vuer, VuerSession
from vuer.schemas import DefaultScene, Arrow
app = Vuer()
n = 10
N = 1000
arrow = Arrow(
position=[0, 0.25, 0],
rotation=[0, - 0.5 * 3.14, 0],
scale=0.25,
)
@app.spawn(start=True)
async def main(proxy: VuerSession):
proxy.set @ DefaultScene(arrow)
# keep the main session alive.
while True:
await sleep(16)