Skip to content

Commit

Permalink
Merge pull request #4250 from ntfshard/tessellatePolygonWithHoles_fix
Browse files Browse the repository at this point in the history
tessellatePolygonWithHoles() return value fix
  • Loading branch information
t-paul committed May 3, 2022
2 parents 6eb6e59 + 0f3b291 commit 7940100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/GeometryUtils.cc
Expand Up @@ -293,7 +293,7 @@ bool GeometryUtils::tessellatePolygonWithHoles(const std::vector<Vector3f>& vert
numContours++;
}

if (!tessTesselate(tess, TESS_WINDING_ODD, TESS_CONSTRAINED_DELAUNAY_TRIANGLES, 3, 3, normalvec)) return -1;
if (!tessTesselate(tess, TESS_WINDING_ODD, TESS_CONSTRAINED_DELAUNAY_TRIANGLES, 3, 3, normalvec)) return false;

const auto vindices = tessGetVertexIndices(tess);
const auto elements = tessGetElements(tess);
Expand Down

0 comments on commit 7940100

Please sign in to comment.