Ask Your Question

how to convert point cloud data in txt format to .stl, .dxf, .iges or .pts?

asked 2013-05-12 23:02:53 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

we have a scanned point cloud data in txt format. how can i convert it to any of these dxf, iges, stl or pts formats? if anyone has an answer pls do reply. your precious feedback is welcome.

edit retag flag offensive close merge delete


Can you post more details about the current point-cloud format? "Txt format" is not very descriptive. Perhaps mention what program generated the data, or post a sample of the data file.

Jeremy Zoss gravatar image Jeremy Zoss  ( 2013-05-13 02:14:36 -0500 )edit

@Jeremy The data was obtained by using tally surf in profilometer, used for 3d scanning of objects. It generated x,y,z coordinates which can be saved in .txt format.Finally what we need to do is to generate a 3d model from these coordinates.

Akhil sajith gravatar image Akhil sajith  ( 2013-05-13 19:52:27 -0500 )edit

There are a couple of options that will work for you. You can create a TIN from the LIDAR xyz points but the resulting DXF will be enormous and probably so large that AutoCAD will become unusable. The other option is to create a quadrilateral mesh from the points. I have written apps to do both.

SteveF gravatar image SteveF  ( 2016-03-26 15:29:38 -0500 )edit

Check out the results here:

SteveF gravatar image SteveF  ( 2016-03-26 15:31:08 -0500 )edit

I've added several more tools for dealing with LAS/LAZ files. The first tool will convert a LAS/LAZ point cloud into a DXF point cloud and preserves the LIDAR point classifications by layer. The other tool will generate a contour map from LIDAR data. See: link text

SteveFerrell gravatar image SteveFerrell  ( 2016-10-08 18:24:13 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-14 02:42:59 -0500

Based on those ouput formats, I'm guessing that you don't just want to export the point cloud data (XYZ vertices), but want to first fit a surface to the points. Some of the formats you listed don't support a file consisting of only vertices, but require some concept of surface triangles.

If so, your problem includes not just file-export, but also a mesh-triangulation step.

If you'd like to do this step interactively, you could try using MeshLab. This open-source tool provides basic tools for manipulating point clouds and surfaces, and allows export to STL and DXF formats. A brief tutorial for creating a surface from point cloud data is shown here or here. More sophisticated tools exist for converting and manipulating mesh data, but these are generally proprietary and cost a significant amount of money.

If you want to do this programmatically, I suggest you use PCL. Here is a tutorial for creating meshes from point cloud data in PCL. You may have to write a custom function to import your file data into a PointCloud object, but PCL supports export to STL. If you decide to go this route, you may get better help by asking the PCL Mailing List directly.

edit flag offensive delete link more

answered 2016-10-08 18:37:53 -0500

There are several tools for converting LAS and LAZ files into DXF format at this site: link text

The LAS to DXF Point Cloud tool will convert a LAS/LAS point cloud into a DXF point cloud and preserve the LIDAR point classifications by layer.

The other tools will convert LAS/LAZ files into 3D surface maps and contour maps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-05-12 23:02:53 -0500

Seen: 67,919 times

Last updated: Oct 08 '16