Is there any hueristic to polygonize a closed 2d-raster shape with n triangles?

Posted by Arthur Wulf White on Game Development See other posts from Game Development or by Arthur Wulf White
Published on 2012-10-21T21:31:46Z Indexed on 2012/10/21 23:20 UTC
Read the original article Hit count: 350

Filed under:
|
|

Lets say we have a 2d image black on white that shows a closed geometric shape. Is there any (not naive brute force) algorithm that approximates that shape as closely as possible with n triangles? If you want a formal definition for as closely as possible:

Approximate the shape with a polygon that when rendered into a new 2d image will match the largest number of pixels possible with the original image.

© Game Development or respective owner

Related posts about 2d

Related posts about rendering