Update Triangulate Process [more another case]

This commit is contained in:
Aaron
2023-08-15 18:01:16 +08:00
parent 556c89b5f1
commit 0bfc588c39
2 changed files with 15 additions and 6 deletions

View File

@@ -451,7 +451,7 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh) {
*pnt2 = &temp_verts[next];
// Must be a convex point. Assuming ccw winding, it must be on the right of the line between p-1 and p+1.
if (OnLeftSideOfLine2D(*pnt0,*pnt2,*pnt1)) {
if (OnLeftSideOfLine2D(*pnt0,*pnt2,*pnt1) == 1) {
continue;
}