Changed output to an array of meshes and polylines. Output body edges as polylines.