本文整理汇总了C#中ClipType类的典型用法代码示例。如果您正苦于以下问题:C#ClipType类的具体用法?C#ClipType怎么用?C#ClipType使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:ClipPoly
//Applyapolygonclipperoperationonsubjectverticesusingcutvertices
publicstaticList
ClipPoly(Vector2[]subject,Vector2[]cut,ClipTypeoperation)
{
ListcutPolygons=newList();
Pathssubj=newPaths(1);
subj.Add(Vector2ToIntList(subject));
Pathsclip=newPaths(1);
clip.Add(Vector2ToIntList(cut));
Pathssolution=newPaths();
Clipperc=newClipper();
c.AddPaths(subj,PolyType.ptSubject,true);
c.AddPaths(clip,PolyType.ptClip,true);
c.Execute(operation,solution,
PolyFillType.pftEvenOdd,PolyFillType.pftEvenOdd);
/*
for(inti=0;iignoreArea){
cutPolygons.Add(IntListToVector2(solution[i]));
}
}
*/
returnIntListsToVector2(solution);
}
原文链接:http://www.jxszl.com/biancheng/C/556772.html