Convert Point Cloud Data to Mesh

@ClintBrown3D Autodesk Inventor 07-min

Have you ever needed to convert a point cloud to mesh data in Autodesk Inventor? While Inventor can import point clouds from Recap, point clouds can be un-usable in some workflows, especially when actual geometry is required to work with.

Converting a point cloud to a surface model is currently not possible in 1 piece of software, however there is a workaround using Recap and some free point cloud software called MeshLab (download link here)

Here is the workflow that has worked for me.

  • Open your Point Cloud in Recap (recap can open the following formats .rcs;*.f|s;*.fws;”.lsproj;*.pts;*.ptg;*.pt>c*.zfs;*.zfpj;*.las;*.laz;*.xyz;*.b<t;*.c|3;*.clr;”.e57;*.rdbx;*.rsp;*.rcp;*.dp;*.prj;*.xyb)
  • Export the model from Recap into .PTS Format

@ClintBrown3D Autodesk Inventor 08-min@ClintBrown3D Autodesk Inventor 11-min@ClintBrown3D Autodesk Inventor 12-min

This next step is important. MeshLab can apparently open .PTS files, but they fail to open if exported from Recap. The simple workaround is as follows:

  • Rename the file extension from .PTS to .ASC

@ClintBrown3D Autodesk Inventor 13-min

  • Open Meshlab
  • Import the .ASC Point Cloud

@ClintBrown3D Autodesk Inventor 14-min

  • Accept the default “Pre-Open Options”

@ClintBrown3D Autodesk Inventor 15-min

  • Your Point cloud will now be visible in Meshlab

@ClintBrown3D Autodesk Inventor 16-min

Now convert the point cloud to a mesh

  • Filters > Remeshing, Simplification and Reconstruction > Surface Reconstruction: Ball Pivoting

@ClintBrown3D Autodesk Inventor 17-min

Set the Ball Pivot radius. Depending on the complexity of the point cloud, and the fidelity of the mesh required, you will need to run a few experiments.

  • For a first run, I suggest exporting with a world unit of 0.1
  • Apply

@ClintBrown3D Autodesk Inventor 20.png

Below is a mesh model created from the point clouds. This model is full of gaps, but could be improved, by changing the accuracy of the import above. However a less dense model may be perfect, depending on use case.

@ClintBrown3D Autodesk Inventor 01.png

Export the Mesh to OBJ format

  • File > Export Mesh As…

@ClintBrown3D Autodesk Inventor 21-min.png

  • Give the export a name, choose .OBJ as the extension

@ClintBrown3D Autodesk Inventor 02-min

  • Select All and click OK

@ClintBrown3D Autodesk Inventor 03-min

  • In Inventor Open the OBJ file

@ClintBrown3D Autodesk Inventor 04-min

@ClintBrown3D Autodesk Inventor 05-min

You are now able to interact with the meshed point cloud. The data is imported into Inventor as a Mesh (as shown above).

 

Notes for big data sets:

Try to clean up any data that you don’t need in Recap. Once this is done, you can experiment with the tools inside of MeshLab. This is one of the workflows that I have had some success with:

  • Filters > Point Set – Select Visible Points
  • Filters > Cleaning & Repairing > Remove Duplicate Vertices
  • Filters > Cleaning & Repairing > Remove Vertices wrt Quality
  • Filters > Remeshing Simplification and Reconstruction > Surface Reconstruction: Ball Pivoting (see settings above, experiment till you get the right settings for your worklflow)

 

Note:

This workflow was tested with the following software:

  • MeshLab 2016.12
  • Recap Version 5.0.2041
  • Autodesk Inventor 2019.3

 

Example point cloud from Grabcad: https://grabcad.com/library/reverse-engineering-tasks-7-pipe-from-point-cloud-1 

Credits for help with the PTS to ASC conversion: CADforum