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

pptk viewer hangs when executed with cmd/prompt, outside IDE #55

Open Joel-RoHe opened 2 years ago

Joel-RoHe commented 2 years ago

Hello,

I am working on a system that uses pptk to visualize point clouds. When I test my script in the terminal embedded on the IDE (Spyder), everything works perfectly.

However, when I execute the program using the python launcher, the python interpreter, or even IPython (the IDE uses it), the result is always the same: everything seems to be ok, but after a few seconds the viewer does not respond anymore, and I have to stop it.

This is a minimal example for which this happens.

import pptk

yellow =  [255/255,255/255,0/255]

node_pos = []
node_color = []

for i in range(10):

    node_pos.append([i,0,0])
    node_color.append(yellow)

v = pptk.viewer(node_pos)
v.set(point_size=0.5)
v.set(show_info=True)
v.set(show_grid=True)

while True:
    v.attributes(node_color)

Has anyone come across something similar? Do you know how to fix it?

Thank you