C++#define USINGZ

C# #define USINGZ

With regard to clipping solutions, occasionally users will need to identify vertices that have been created at path intersections, and even assign user-defined data there. To facilitate this, the pre-processor directive USINGZ can be set. This adds a Z member to the definition of all vertices. This Z is solely for user-defined data. Additionally, whenever new vertices are created at path intersections, this Z member can be assigned using a user defined ZCallback function.

There are C++ and C# examples of using USINGZ in the respective Examples folders.

Note: Enabling (defining) this pre-processor directive will have a small impact on performance, so the library's default is to leave this undefined.

See Also

Clipper64.ZCallback, ClipperD.ZCallback