Anybody out there who have any experience converting simple ASCII pointclouds to a 3D format (dxf, 3ds etc.) - what I’ve got is a textfile in this format:
352000,178500,18.889
352000,178499,18.880
352000,178498,18.919
352000,178497,18.909
352000,178496,18.898
352000,178495,18.960
352000,178494,18.956
…and on it goes for 250000 lines
Presume its X, Y, Z in meters…
Been trying a bunch of different converters.. but starting to think that a maxscript could do it - nothing on script spot, though.
BUT… if you know the size of the matrix - couldn’t you create a plane through max-script with a corresponding no. of vertices and then apply the z values through some sort of array…
(not an expert on maxscript - as you might notice)
this is where im at at the moment. i dont have the data other than from Mtext objects in acad wich i cant import into max and convert to pointclouds with maxscript…arghh !!
im not really sure what i would use the TIN to for though. either it could be used as is or with meshsmooth or even as a basis for a displacement map.
unfortunatly without the z coordinate plotted. i thought i could make an maxscript wich read the nearest text to the spot level and generated the z coordinate with that. unfortunatly max wont import MTEXT objects from acad and i know nada about scripting in acad, so my only choice is to by hand plot the elevation of all the points (there are _many_ ).
the tinlib is working well. i couldnt get the other app to work either, but the webpage had good explanation about the process. you dont need to to compile it though. if you download tinlib_w.zip its already compiled with a GUI think its called tingui.exe where you can load a .txt file in this format:
num_points=67
x y z
x y z
. . .
it will generate the tri’s and you have the choice to save the tri’s as a textfile. from there you then need to make a maxscript wich will transform the data to a mesh ( not to complicated )
Have you tried to import the point cloud in Rhino? Rhino can make a patch surface through a point cloud, and also there are additional plugins if I remember well to handle point cloud data and coverting them to surfaces.
I wouldn’t call this a point cloud. To me a point cloud is a mass of clustered points, such as would result from a laser scan.
What you have is terrain data. What you need to make is a TIN. Many packages available to do this. Plus, a simple TIN will use far fewer polys than a mesh from a point cloud.
Yeah… been trying some apps to convert into TIN - so far no luck. They either don’t understand my format, crashes while recalculating my 250000 point landscape or doesn’t have much export options… but i’ll keep looking, TIN definately seems to be the way forward.
Unfortunately we don’t have Rhino, but as far as i can understand, Rhino is also struggling with that much data.
We’ve put a request in with the company supplying us with the data, to see if they do TIN.
Found out that the .xyz file is based on LIDAR data, ring any bells? - quite a few references on the web, but nothing that really explains how the points has been measured.
Sure. LIDAR is an acronym for LIght Detection And Ranging.
It’s an airplane-based laser that sweeps the earth and records distances. Like a giant fish-finder.
The main difference between data returned by LIDAR and other sources (like DEMs, aerial topos from photogrammetry, etc.) is that LIDAR data reflects elevation of the first thing it hits. That could include tops of buildings, tree tops, etc. May not be a problem for you - just something to be aware of.
As far as how to read it, are the points all arranged in a grid? If so. you may be able to read them as a DEM and skip the TIN generation.