heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
610 stars 112 forks source link

Update point location without creating a new graph #13

Open lloydrayner opened 5 years ago

lloydrayner commented 5 years ago

Hey,

I wonder if there is a solution for updating a point location without having to close and restart the instance?

I have some moving points and I would like to be able to show this.

Thank you :)

lloydrayner commented 5 years ago

Ok, found a solution. Although slightly messy.

The transition isn't very smooth, any ideas would be appreciated

xyz = pptk.rand(10, 3) v = pptk.viewer(xyz) v.set(point_size=0.2) for i in range(3): xyz = pptk.rand(10, 3) v.clear() v.load(xyz) v.set(r=4) time.sleep(1)

brunoeducsantos commented 4 years ago

Is there a better solution? Or only going deeper into their code? Thanks