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

Method ToString

CSharp/Clipper2Lib/Clipper.Engine.cs:3548–3558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3546 }
3547
3548 public override string ToString()
3549 {
3550 if (Level > 0) return ""; //only accept tree root
3551 string plural = "s";
3552 if (_childs.Count == 1) plural = "";
3553 string result = $"Polytree with {_childs.Count} polygon{plural}.\n";
3554 for (int i = 0; i < Count; i++)
3555 if (_childs[i].Count > 0)
3556 result += _childs[i].ToStringInternal(i, 1);
3557 return result + '\n';
3558 }
3559
3560} // PolyPathBase class
3561

Callers

nothing calls this directly

Calls 1

ToStringInternalMethod · 0.80

Tested by

no test coverage detected