Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create 2d triangles from 2d points

I have to make 2d triangles from a list of 2d points with a condition: length of any edge can't be longer than a predefined constant.

Something like this: alt text

Do you know any algorithm that can do this? Or any advise?

Thanks!

like image 504
Mart Avatar asked Aug 24 '10 10:08

Mart


1 Answers

Try Delaunay triangulation, then remove any edges which are too long.

From the above article, you see a link to CGAL's 2D triangulation page.

like image 192
Andre Holzner Avatar answered Sep 30 '22 10:09

Andre Holzner