Skip to content

execute polytree for offsetting #48

Description

@Wikunia

It seems like offsetting in this wrapper can only return a list of polygons and not a polytree.
This is harder to work with when one wants to offset polygons that include holes as matching holes to the correct outer polygon isn't straightforward.

From the Clipper documentation:
http://www.angusj.com/delphi/clipper/documentation/Docs/Units/ClipperLib/Classes/ClipperOffset/Methods/Execute.htm
it looks like Clipper itself supports this. Would there be interest in having this functionality in this wrapper?
Would love to help with implementation but probably need some advice as I've never worked with a C++ wrapper in Julia before.

A bit more information:
The CPP code:
https://github.com/Geri-Borbas/Clipper/blob/master/cpp/clipper.cpp#L3917-L3955

The current Julia part:
https://github.com/JuliaGeometry/Clipper.jl/blob/master/src/Clipper.jl#L278-L285

I don't know what the arguments in ccall are.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions