Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Allow retieving solutions as tree #2

Description

@dmac000

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) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions