1

Clipper 的文档说“主题”路径可能是开放的(线)或封闭的(多边形),甚至是两者的混合。然而,当我尝试在 ClipperLib::Clipper 类中添加开放路径时,它总是得到错误。源码如下:

ClipperLib::Clipper splitArea; //Declare an object of Clipper splitArea.Clear(); ClipperLib::Path Sub; //Declare an object of path Sub<<ClipperLib::IntPoint(-1000*1000000,0*1000000) <<ClipperLib::IntPoint(0*1000000,1000*1000000); //add a line in path splitArea.AddPath(Sub,ClipperLib::ptSubject,false); //this line is error ...

4

0 回答 0