I generate point clouds in Python. I can save them in different formats, but generally they are a numpy matrices [x,y,z,r,g,b,intensity]. Then I would like to open them automatically in the CloudCompare window, without manually clicking open -> point to file -> apply all -> global shift -> yes ->..., or manually dragging files from windows explorer to the CC window. Is it possible to load files into the CC window directly from the Python script? For now, I only need to display these clouds in a window for viewing.
I managed to run CC automatically from Python, but I don't know what to do next:
Code: Select all
import os
path = 'c:/Program Files/CloudCompare/CloudCompare.exe'
print('opening CC')
os.system('"%s"' % path)