Polygon convex partitioning and triangulation.
Merge solid polygons and decompose into convexes.
Find the two closest points on two 3D lines.