PolyTree is ill-formed on default construction
Polygon and line clipping and offsetting library (C++, C#, Delphi)
Brought to you by:
angusj
There's compilation problem I've encountered while trying to initialize PolyTree (would be ill-formed on default construction). Is it there for compability reasons? I've replaced PolyTree with PolyPath throughout the code and defined default constructor for PolyPath to init parent to NULL and it works. I'm not sure whether it's a bug or usability issue. Thanks.
Anonymous
Hi again Andrii.
Yes, I had that fix already queued for the next update.
While you can instantiate PolyPath directly, Polytree is intended as the tree root and with the changes below will instantiate with the default constructor (as intended)...
clipper.h ...
clipper.cpp
Last edit: Angus Johnson 2017-11-23