segment point clouds to patches