Skip to content
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

Negative winding broken #21

Open
seandepagnier opened this issue May 9, 2016 · 2 comments
Open

Negative winding broken #21

seandepagnier opened this issue May 9, 2016 · 2 comments

Comments

@seandepagnier
Copy link

I use the glu tesselator for computing intersections and subtractions of regions. When I switched to tess2 it does not work for subtraction anymore and apparently the negative winding does not work anymore. Maybe this was an "optimization" for the case of triangles but not correct for contours.

Also, it seems to be slower than the original glu for simple polygons without overlapping contours or inner contours.

@memononen
Copy link
Owner

Do you have a repro case for the failing subtraction? It should work.

Also, do you have a specific case for the simple polygon that is slower, and how much it is slower?

@seandepagnier
Copy link
Author

This example shows the difference from libtess and libtess2 for the same operation. It is simply a single negative contour!

I will work on an example where it is slower.

tesscomparison.tar.xz.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants