Right now, we construct ghosts lines by just naively connecting all unconnected components. If there are a large amount of unconnected components, this results in a large number of cutting ghost lines.
A better approach would be to use a Euclidean Minimum Spanning Tree (with each point in the tree being an arbitrary point on each component, e.g. the first/last point in a ring).
Right now, we construct ghosts lines by just naively connecting all unconnected components. If there are a large amount of unconnected components, this results in a large number of cutting ghost lines.
A better approach would be to use a Euclidean Minimum Spanning Tree (with each point in the tree being an arbitrary point on each component, e.g. the first/last point in a ring).
For this we would need to follow this approach: