()
| 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 |
nothing calls this directly
no test coverage detected