MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / ShowPolyPathStructure

Method ShowPolyPathStructure

CSharp/Clipper2Lib/Clipper.cs:1200–1213  ·  view source on GitHub ↗
(PolyPath64 pp, int level)

Source from the content-addressed store, hash-verified

1198 }
1199
1200 private static void ShowPolyPathStructure(PolyPath64 pp, int level)
1201 {
1202 string spaces = new string(' ', level * 2);
1203 string caption = (pp.IsHole ? "Hole " : "Outer ");
1204 if (pp.Count == 0)
1205 {
1206 Console.WriteLine(spaces + caption);
1207 }
1208 else
1209 {
1210 Console.WriteLine(spaces + caption + $"({pp.Count})");
1211 foreach (PolyPath64 child in pp) { ShowPolyPathStructure(child, level + 1); }
1212 }
1213 }
1214
1215 public static void ShowPolyTreeStructure(PolyTree64 polytree)
1216 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected