Skip to content

ClipperOffset.Execute returns Polytree #443

@frankbielig

Description

@frankbielig

Clipper1 provides an offset interface where you directly get a Polytree as result. This interface is unfortunately omitted in Clipper2:

void Execute(Paths& solution, double delta);
void Execute(PolyTree& polytree, double delta);

-->

Paths Execute(double delta);

Of course, you can make a Polytree out of the path again. However, this detour is significantly slower than the direct path in Clipper1. The necessary information is certainly already available within the offset operation.

Request: Add a new function to get a Polytree from the offset operation. Alternatively, the current function could be replaced, since a Polytree can be easily converted with PolyTreeToPaths.

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