pptk icon indicating copy to clipboard operation
pptk copied to clipboard

hold the viewer for different points

Open JoltonADsouza opened this issue 5 years ago • 5 comments

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?

JoltonADsouza avatar Aug 23 '19 22:08 JoltonADsouza

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 :)

samanbey avatar Dec 06 '19 08:12 samanbey

Did anyone figure this out?

soulslicer avatar Jan 14 '20 22:01 soulslicer

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

ozgurovic avatar Jan 31 '20 14:01 ozgurovic

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.

samanbey avatar Jan 31 '20 14:01 samanbey

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

soulslicer avatar Jan 31 '20 16:01 soulslicer