2 April 2014

From point cloud to mesh

Hi,

Now that we have point clouds what can we do with them?
Well my first idea was to use them as a reference to create meshes in a 3D editor.
But if you want to make a mesh from the point cloud itself, how can we do it?

This is a basic tutorial to create meshes from point clouds in Cloud Compare.
For that we need to install Cloud Compare.
Just go to:  http://www.danielgm.net/cc/  and download the program.
It's free but you can make a donation to the creator, he really deserves.

PVS creates point clouds and the ones from the sample project are stored in the folder ".../PVS/Sample Project/Reconstruction/Absolute". They are in the ASCII PLY format.
If you are interested in knowing more about the format, please visit  http://paulbourke.net/dataformats/ply/ .

Ok now let's start:

1 - Open Cloud Compare and drag the point clouds you want to treat inside.

2 - Cloud compare asks for each point cloud some questions, just click "Ok" for all. This may take a while.
If you are aware of a faster way, please share with me.




3 - You will see all the point clouds in the viewer.
Usually I change from orthographic projection to object centred projection. For that use the button on the left pane and change from
 to

3 - The point clouds are separated, let's merge them.
Keep the "Alt" key pressed and with the mouse select all the points on the viewer or in the left list, select all the point clouds.


Now go to the menu and select "Edit->Merge".


4 - Now we have a merged point cloud.
We need to sub sample the point cloud to remove overlapping points and to get a workable mesh.
Once again, select the point cloud you want to sub sample.
Next go to the menu and select "Edit->Subsample".

  • On the method I use "Space".
  • I'm using 0,05 meters on the space between points.
  • Click "Ok" and wait.


We now have two point clouds. The original one (now hidden) and the sub sampled one.


5 - Now let's make the mesh.
You must have the sub sampled point cloud selected.
On the menu select "Edit->Mesh->Delaunay 2D (axis aligned plane)"

  • Select a value of 0.8 meters for the maximum edge length.
  • Pres "Ok" and wait.


The mesh is created. Uncheck "Normals" to see the coloured faces and check "Wireframe" to see the wire frame.

6 - Ok this is a bit chaotic, let's smooth the surfaces.
Select the mesh and on the menu go to "Edit->Mesh->Smooth (Laplacian)".

  • Keep default values.
  • Click "Ok"and wait.


Once again, uncheck "Normals" to see the coloured faces and check "Wireframe" to see the wire frame.

That's it, you now have a smoothed mesh reconstruction.
Play with the values.


10 comments:

  1. For the step 2,
    "Cloud compare asks for each point cloud some questions, just click "Ok" for all. This may take a while.
    If you are aware of a faster way, please share with me."

    An very convenient way is to simply hold the intro key, they import almost automatically, you can block the intro key with a paper, a coffy cup or simply hold with the finger.
    ____
    Pablo

    ReplyDelete
  2. Hi Pedro,

    How can I contact you via email?

    My name is Robert. you can find me at www.geointeractive.com.au

    ReplyDelete
    Replies
    1. Hi Robert, please use my email: pedroantunes@cca.web.pt

      Delete
    2. This comment has been removed by the author.

      Delete
  3. Hi Pedro, I would like to talk to you again about computer vision. What is your new email address?

    Thanks Robert

    ReplyDelete
  4. Point clouds are the set of data points in cloud. Generally, the 3D scanner produces the point cloud. Onsite 3D provides the best 3D scanning service at an affordable price.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete

  6. thanks for sharing this article,Your article is always waiting,good information in this article........
    epson scanner support
    epson scanner customer service

    ReplyDelete
  7. your content is awesome and very informative i also have a website please visit and share your review to bharamrishi is very useful and good website

    bharamrishi



    ReplyDelete