possible solution from recast: steps 3 to 5 of https://9631ec60-a-62cb3a1a-s-sites.googlegroups.com/site/recastnavigation/MikkoMononen_RecastSlides.pdf * watershed partitioning to find regions * contour the regions to get polygons * triangulate the polygons to get a trimesh