mirror of
https://github.com/godotengine/godot.git
synced 2024-11-14 08:03:05 +00:00
Merge pull request #16419 from nical/issue-16395
Fix polygon triangulation failure.
This commit is contained in:
commit
5c9ecc174b
@ -74,7 +74,7 @@ bool Triangulate::is_inside_triangle(real_t Ax, real_t Ay,
|
||||
cCROSSap = cx * apy - cy * apx;
|
||||
bCROSScp = bx * cpy - by * cpx;
|
||||
|
||||
return ((aCROSSbp >= 0.0) && (bCROSScp >= 0.0) && (cCROSSap >= 0.0));
|
||||
return ((aCROSSbp > 0.0) && (bCROSScp > 0.0) && (cCROSSap > 0.0));
|
||||
};
|
||||
|
||||
bool Triangulate::snip(const Vector<Vector2> &p_contour, int u, int v, int w, int n, const Vector<int> &V) {
|
||||
|
Loading…
Reference in New Issue
Block a user