News for hackers. Stuff that matters.
Re:Show HN: I built a tool to generate triangulated art from... by thomasahle on Thursday April 22, 2021 @05:05AM (#26900496)
I'm impressed it manages to preserve the frames of the man's glasses.

Did you do that manually? Or does the algorithm somehow detect lines like that?

Re:Show HN: I built a tool to generate triangulated art from... by rh12503 on Thursday April 22, 2021 @05:28AM (#26900619)
Thanks! The algorithm works iteratively, so essentially each iteration it makes small changes and then checks if these changes are optimal. (There are many more details described on the wiki [1])

The frames of the glasses were preserved because the algorithm "decided" that it was optimal to keep them with the limited number of points it has to work with.

[1] https://github.com/RH12503/Triangula/wiki/Explanation-of-the...