You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose the format of the three-dimensional coordinates is [X,Y,Z].
Suppose there are triangle A and triangle B, the set of vertex coordinates of triangle A is [0,0,0, 1,2,0, 2,0,0], B is [0,0,0, 1,0,2, 2,0,0].
Obviously their shapes are the same, except that A is located on the XY plane and B is located on the XZ plane, but the result of earcut A is valid, but the result of earcut B is invalid(see the example below for details), this is the problem I encountered.
Excuse me, is this because of my wrong way of use, or is it because of a bug in the program?
Direction:
Suppose the format of the three-dimensional coordinates is [X,Y,Z].
Suppose there are triangle A and triangle B, the set of vertex coordinates of triangle A is [0,0,0, 1,2,0, 2,0,0], B is [0,0,0, 1,0,2, 2,0,0].
Obviously their shapes are the same, except that A is located on the XY plane and B is located on the XZ plane, but the result of earcut A is valid, but the result of earcut B is invalid(see the example below for details), this is the problem I encountered.
Excuse me, is this because of my wrong way of use, or is it because of a bug in the program?
Example
const d_a = [0,0,0, 1,2,0, 2,0,0];
const d_b = [0,0,0, 1,0,2, 2,0,0];
earcut(d_a, null, 3); // return [1, 0, 2]
earcut(d_b, null, 3); // return []
The text was updated successfully, but these errors were encountered: