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

hold the viewer for different points #21

Open JoltonADsouza opened 5 years ago

JoltonADsouza commented 5 years ago

I am updating my points after every 0.5 seconds using a for loop and I want the viewer window to be the same and not open a new one again and again after every update. How do I do this?

samanbey commented 4 years ago

You can clear the viewer and reload points without creating a new window: v.clear() v.load(points)

the problem is that the eye position is also reset by using load() - so if anyone knows how to load points without changing the current eye position, let me know :)

soulslicer commented 4 years ago

Did anyone figure this out?

ozgurovic commented 4 years ago

v.set(lookat = (1,0,-2)) #Camera look-at position v.set(phi = 0.7) #Camera azimuthal angle (radians) v.set(theta = 0.7) #Camera elevation angle (radians) v.set(r = 100) #Camera distance to look-at point

samanbey commented 4 years ago

Yes, you can save current viewpoint before reloading points and then reset the saved viewpoint, but before that the default vp will be set for a flash. Finally I gave up pptk and used pclpy instead. This problem does not occur there.

soulslicer commented 4 years ago

Wow, never even heard of pclpy, it seems great. Will use that instead