Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algorithm for generating a triangular mesh from a cloud of points

In some simulation program we generate object surfaces in terms of points, each point has 3D coordinates and the vector that represents the normal to the surface at that point. For visualization purposes we would like to generate a mesh composed of triangles; each three close points form one triangle with its normal. Then we can send this information to some standard visualization programs that render the surface like VMD (Visual Molecular Dynamics).

We wonder which is the fastest/available algorithm for doing this.

like image 819
Open the way Avatar asked Oct 24 '11 17:10

Open the way


People also ask

What is mesh algorithm?

A meshing algorithm can ideally define the shape and distribution of the elements. A key step of the finite element method for numerical computation is mesh generation algorithms. A given domain is to be partitioned it into simpler 'elements'.


3 Answers

Take a look at Jonathan Shewchuk's work, especially on his (together with his colleagues) famous papers and implementations of:

There is also fast implementation of unsorted point clouds implemented in the Point Cloud Library (PCL). Check their presentation on Fast triangulation of unordered point clouds.

like image 93
mloskot Avatar answered Oct 13 '22 22:10

mloskot


Note that Delaunay triangulations may not suit your application in that Delaunay triangulations are not suited to true 3D problems (i.e. where points are well-distributed in R3). They are more appropriate for 2D manifold problems (i.e. terrain, etc).

To generate surfaces in R3, look at the work of Hugues Hoppe and his "surface reconstruction" work.

Surface reconstruction is used to find a meshed surface to fit the point cloud; however, this method yields high triangle counts. If this is a problem, you can then apply mesh a reduction technique to reduce the polygon count in a way to minimize error. As an example, you can look at OpenMesh's decimation methods.

Hugues Hoppe

OpenMesh

like image 30
Throwback1986 Avatar answered Oct 13 '22 22:10

Throwback1986


Misha Kazhdan's poisson algorithm might work well on your data. Its software page is here. Note that there also exists a CGAL version. Manual is here and ready to use windows demo here (provided you installed these dlls).

like image 28
sloriot Avatar answered Oct 13 '22 21:10

sloriot