Question to D. Bur about Cloud v8
-
Points cloud triangulation will only make a triangulated 'mesh'.
The delauney algorithm that optimizes this mesh also expects not point to be vertically above another.
It will still make a mesh but the result probably won't be what you expected !
So something as simple as a box of 8 cpoints will fail to be made as you want if any sides are vertical.
So if you expect there are vertical edges in your data you need to devise a way to tell your code which belong to each separate flat face and pass those to be 'meshed' - processing each face in turn. That way delauney is avoided a,d the faces get returned as expected, albeit perhaps triangulated - unless you are always confident that the face's points are in the correct c/c-wise order to avoid that too...
Instead of having each point's X,Y,Z values on separate lines perhaps have all points for one face on one line with each point's X,Y,Z separated by a ', ,' gap [or perhaps a ',|,' or ',:,'] so as the line is read your code can 'split' it into separate XYZ point-sets which are then split into the X, Y and Z values and make a face, then do the next line and its face etc...
OR keep the XYZ points in a column and when the face changes X becomes 'EOF' so your code knows where the face ends and the next one starts...
Advertisement