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

Allow retieving solutions as tree #2

Open
dmac000 opened this issue Oct 7, 2016 · 0 comments
Open

Allow retieving solutions as tree #2

dmac000 opened this issue Oct 7, 2016 · 0 comments

Comments

@dmac000
Copy link
Contributor

dmac000 commented Oct 7, 2016

To get the results as a tree, then PolyNode and PolyTree should be public.

When I did this, there were some NullPointerExceptions thrown from DefaultClipper. I've change some lines to prevent this:

In buildResult2:

final int cnt = (outRec.getPoints() == null) ? 0 : outRec.getPoints().getPointCount();

In fixupFirstLefts2:

if(outRec == null || outRec.firstLeft == null) continue;

In joinCommonEdges:

if (oRec.getPoints() == null || oRec.firstLeft == null || oRec.firstLeft.parseFirstLeft() != outRec1 || oRec.isHole == outRec1.isHole) {
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

1 participant