pub fn merge_coplanar_polygons<T: Number>(
polygons: Vec<Polygon<T, 3>>,
) -> Vec<Polygon<T, 3>>Expand description
Merge coplanar adjacent polygons that share edges.
Algorithm:
- Group polygons by quantised plane.
- For each coplanar group, build a directed-edge map.
- Greedily merge polygon pairs that share an edge (opposing directions).
- Repeat until no more merges are possible in that group.