Page 1 of 1

How to import line segments into CloudCompare

Posted: Thu Nov 11, 2021 12:53 pm
by shayanni
I have a c++ program that creates some line segments. For each line segment, I have the vertices ([1 x y z], [2 x y z], [3 x y z]) and the topology (1-2, 1-3) which says how the vertices connect to each other. How I can import this into CloudCompare as a polyline object or line segment to visualize it. I can write it into the OFF format but off format expects faces to visualize them. Is there a simple way or a simple format to do this instead of using DXF or SHP file? Because I don't know how to export my data into dxf or shapefile.

I appreciate any help.

Re: How to import line segments into CloudCompare

Posted: Fri Nov 12, 2021 11:49 am
by daniel
We have the '.poly' format, where you just need to list the vertices one after the other (one by line). CC will implicitly connect them.

And if you leave a blank line, you 'break' the polyline, and therefore describe several parts in one file.

Re: How to import line segments into CloudCompare

Posted: Tue Nov 16, 2021 12:30 pm
by shayanni
Thank you Daniel. So this is "Salome Hydro polylines" which I was not aware of.