Open pmoulon opened 5 years ago
Have you checked it's actually returning the face [6,7,8]? Earcut often filters colinear points, therefore I assume it returns [4,8,6] and ignores 7 completely. You'll find the discussion about this behaviour here: https://github.com/mapbox/earcut/issues/74
Yes it returns the face [6,7,8]. It was bothering me, so I checked faces area and saw one was 0.
Thx you for pointing me to the earcut thread.
By design a face of 0 area should not be returned.
I have a set of points that is creating an issue, I have a triangulation that provides a face that is having an area equal to 0:
Basically a face is created between the point [6,7,8] (0 area face).
I would rather prefer to have [4,8,7] and [4,7,6] created instead.