Convert 2D ndarray heightmaps into 3D meshes