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

Can a 'Z' member be added to points in path? #22

Open
j00000ker opened this issue Mar 21, 2019 · 1 comment
Open

Can a 'Z' member be added to points in path? #22

j00000ker opened this issue Mar 21, 2019 · 1 comment

Comments

@j00000ker
Copy link

Can I use [x,y,z] to define points in path? And can I get lines (2 points) if subject and clip not in a same plane? I heard it is available in C++

@flabowski
Copy link

Hi, this library does not support 3D polygon clipping. In the documentation it is defined as follows (http://www.angusj.com/delphi/clipper/documentation/Docs/Overview/_Body.htm):

Clipping: commonly refers to the process of cutting away from a set of 2-dimensional geometric shapes those parts that are outside a rectangular 'clipping' window. This can be achieved by intersecting subject paths (lines and polygons) with a clipping rectangle. In a more general sense, the clipping window need not be rectangular but can be any type of polygon, even multiple polygons. Also, while clipping typically refers to an intersection operation, in this documentation it will refer to any one of the four boolean operations (intersection, union, difference and exclusive-or).

This means you will have to project (or transform) your polygons into the same plane, polygon clipping only works in 2D.

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