我想要画线多边形并使用偏移但它联合
问问题
423 次
1 回答
2
Suppadech,我建议您将两条闭合路径传递给 ClipperOffset 对象,其中第二条路径的方向与第一条路径相反。
int main()
{
Paths subj(2);
Paths solution;
subj[0] << IntPoint(10,10) << IntPoint(100,10) << IntPoint(100,100) << IntPoint(10,100);
subj[1] << IntPoint(10,10) << IntPoint(10,100) << IntPoint(100,100) << IntPoint(100,10);
ClipperOffset co;
co.AddPaths(subj, jtSquare, etClosedPolygon);
co.Execute(solution, 5.0);
}
于 2016-12-15T14:07:50.810 回答