-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Star model displays triangulation issues #143
Comments
@therealprof has reported some weird data in #246. See also my comment there. I'm going to repeat some of what I said there here, as it directly relates to this issue. The screenshots here show whole triangles that shouldn't be there. This is most likely a problem in the triangulation code or the approximation code that feeds it data. More specifically, I suspect that it might be a problem with the point-in-polygon testing that's necessary as part of the triangulation ([1] and [2]), which has known issues (#105). A word of warning: That triangulation code is pretty gnarly, and overdue for a cleanup. See #105. |
Looks like triangles that should be kept are being removed instead, which again points to issues with the point-in-polygon test. |
I think I get it. The problem was introduced in this commit: eb187e0 This changes the calculation of the point the ray shoots to. The algorithm itself stays the same, just the ray that is used for determining if a triangle is part of the shape is changed, meaning it could hit different edges in different places, at different angles. There are known problem with that code. I'm very sure that this commit didn't introduce any new issues, it just shuffled things around, so that the default 5-pointed star model now triggers those bugs. This is unfortunate, but some fallout is to be expected, as I work on the triangulation code. I don't intend to do anything about this specific instance of the bug, but I'm actively working on fixing this and other triangulation bugs, so I hope this will improve soon. |
When changing the number of pointy ends of the star model, some values display triangulation issues.
Here's the 12-pointed star:
And here's the 15-pointed star:
These might or might not be the result of issues that are already documented in #105, but in any case, I think it would be a mistake to fix more triangulation bugs without adding test cases to guard against regressions. Labeling this issue as blocked by #105.
The text was updated successfully, but these errors were encountered: