pyclipper icon indicating copy to clipboard operation
pyclipper copied to clipboard

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

Open j00000ker opened this issue 6 years ago • 1 comments
trafficstars

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++

j00000ker avatar Mar 21 '19 14:03 j00000ker

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.

flabowski avatar Mar 21 '19 16:03 flabowski