Closed findux closed 1 year ago
The error is caused one of the paths passed to the Clipper
object is open, but the Execute
call is given a Paths
object as the solution parameter. According to the documentation:
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.
In this case a PolyTree
object should be used to store the solution:
local ress = clipperLib.PolyTree()
cl:Execute(clipperLib.ctIntersection, ress)
Hi. As seen in the picture, after the 59th line, I get an error like the one on the screen. Isn't that the correct usage? I am using Löve2D 11.3.