Paths subj(2), clip(1), solution; subj[0] <<IntPoint(0, 100) << IntPoint(100, 100); subj[1] <<IntPoint(0, 50) << IntPoint(100, 50); clip[0] <<IntPoint(30,0) << IntPoint(35,200) <<IntPoint(40,210) << IntPoint(45,40); Clipper c; c.AddPaths(subj, ptSubject, true); c.AddPaths(clip, ptClip, true); c.Execute(ctIntersection, solution, pftNonZero, pftNonZero);
solution
c.Execute(ctIntersection, solution, pftNonZero, pftNonZero)
Quote:when open paths are passed to a Clipper object, the user must use a PolyTree object as the solution parameter, otherwise an exception will be raised.
PolyTree
Paths
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)