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.
How to import line segments into CloudCompare
Re: How to import line segments into CloudCompare
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.
And if you leave a blank line, you 'break' the polyline, and therefore describe several parts in one file.
Daniel, CloudCompare admin
Re: How to import line segments into CloudCompare
Thank you Daniel. So this is "Salome Hydro polylines" which I was not aware of.