Triangulation gives an unexpected (wrong?) result #1088
Closed
BasTossings
started this conversation in
General
Replies: 1 comment
-
Ah, I found my answer. The polygon was not CCW. Lesson learned. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ok so I'm working with the C-bindings, and trying to triangulate a polygon using
manifold_triangulate
which I suspect internally callsTriangulateIdx
.I'm inputting a concave polygon with the following vertices:
Using the following (pseudo-code) sequence:
But when I look at the output, it is not a valid triangulated polygon (the expected result is only an approximation but it illustrates the problem):
What gives? Am I using the API wrong?
Beta Was this translation helpful? Give feedback.
All reactions