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

Fill triangulation routine bug #106

Open
akuklev opened this issue Apr 1, 2014 · 1 comment
Open

Fill triangulation routine bug #106

akuklev opened this issue Apr 1, 2014 · 1 comment

Comments

@akuklev
Copy link

akuklev commented Apr 1, 2014

The triangulation routine does not process polygons with holes correctly. Both in the case one introduced the holes like in genuine Flash graphics (beginFill, moveTo-lineTo-lineTo for outer contours, then moveTo-lineTo-lineTo for the holes, endFill afterwards) and also in the case one produced holes by making a self-touching contour, like:

// Draw a rectangle(0, 0, 10, 10) {
g.moveTo(0, 0); 
g.lineTo(0, 10);
g.lineTo(10, 10);
g.lineTo(10, 0);
g.lineTo(0, 0);
// }, cut out a triangle((4,4), (4, 5), (5, 4)) {
g,lineTo(4, 4);
g.lineTo(4, 5);
g.lineTo(5, 4);
g,lineTo(4, 4);
g.lineTo(0, 0);
// }
@IonSwitz
Copy link
Member

IonSwitz commented Apr 1, 2014

Thank you for reporting this. This is a known issue and the explanation to why it is like this can be read in this issue:

#81

(Don't let the title fool you, the issue is at heart the same as the one you describe here.

It is very hard to solve, and most likely, it won't be solved.

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