Filipe Aleixo
Filipe Aleixo

Reputation: 4244

Sampling triangle mesh obtained with Delaunay function

I have a colection of 3d cloud points such as the one that follows, representing a 3d shape:

enter image description here

My goal is to increase the number of points on each cloud so that I obtain more 'continuous' clouds. Also it would be important to be able to set the number of points to sample so that every cloud has the same number of points.

I was thinking of using the function delaunay in order to obtain a triangle mesh such as the one that follows

enter image description here

So that afterwards I could sample it and obtain a smoother cloud. Is there any straightforward way to sample the delaunay mesh?

Or else, do you think there is a better way to achieve this goal without creating a triangle mesh?

Upvotes: 0

Views: 174

Answers (1)

Cybercartel
Cybercartel

Reputation: 12592

You can find the dual of the delaunay triangulation,ie. the voronoi diagram and apply Loyd's algorithm and move the vertices to the center of gravity of the voronoi cell.

Upvotes: 1

Related Questions