News for hackers. Stuff that matters.
Re:Implementing Marching Squares by phkahler on Thursday December 23, 2021 @01:41PM (#29664963)
>> Cases 5 and 10 in the article are actually ambiguous.

They are. He does mention using interpolation to make better boundaries. For example if you're using a threshold value and flag points as above/below that value, you can position the end-point of a line based on that threshold. When the lines don't exactly split a squares edge then cases 5 and 10 can be made less ambiguous by selecting the lines that minimize total line-length within a square. Or some similar heuristic.

There are no comments on this comment yet.