Angus Johnson - 2017-11-23

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

class PolyPath
{ 
      ....
public:
      PolyPath(PolyPath *parent, const Path *path);
      ....
};

class PolyTree : public PolyPath 
{
public:
  PolyTree() : PolyPath(NULL, NULL) {};
};

clipper.cpp

  PolyPath::PolyPath(PolyPath *parent, const Path *path)
  {
    parent_ = parent;
    if (path) path_ = *path;
  }
 

Last edit: Angus Johnson 2017-11-23