parameters: (mesh, pts, engine="auto", bvh=None)
return_statement: return squared_distances, face_indices, closest_points
docstring: Compute the distance from a set of points to a mesh.
  
      Args:
          mesh (:class:`Mesh`): A input mesh.
          pts (:class:`numpy.ndarray`): A :math:`N \\times dim` array of query
              points.
          engine (``string``): BVH engine name. Valid choices are "cgal",
              "geogram", "igl" if all dependencies are used. The default is
              "auto" where an available engine is automatically picked.
          bvh (:class:`BVH`): BVH engine instance (optional)
  
      Returns:
          Three values are returned.
  
              * ``squared_distances``: squared distances from each point to mesh.
              * ``face_indices``  : the closest face to each point.
              * ``closest_points``: the point on mesh that is closest to each
                                    query point.
docstring_summary: Compute the distance from a set of points to a mesh.
docstring_tokens: Compute the distance from a set of points to a mesh .
function: def distance_to_mesh(mesh, pts, engine="auto", bvh=None):
      """ Compute the distance from a set of points to a mesh.
  
      Args:
          mesh (:class:`Mesh`): A input mesh.
          pts (:class:`numpy.ndarray`): A :math:`N \\times dim` array of query
              points.
          engine (``string``): BVH engine name. Valid choices are "cgal",
              "geogram", "igl" if all dependencies are used. The default is
              "auto" where an available engine is automatically picked.
          bvh (:class:`BVH`): BVH engine instance (optional)
  
      Returns:
          Three values are returned.
  
              * ``squared_distances``: squared distances from each point to mesh.
              * ``face_indices``  : the closest face to each point.
              * ``closest_points``: the point on mesh that is closest to each
                                    query point.
      """
  
      if not bvh:
          bvh = BVH(engine, mesh.dim)
          bvh.load_mesh(mesh)
      squared_distances, face_indices, closest_points = bvh.lookup(pts)
      return squared_distances, face_indices, closest_points
function_tokens: def distance_to_mesh ( mesh , pts , engine = "auto" , bvh = None ) : if not bvh : bvh = BVH ( engine , mesh . dim ) bvh . load_mesh ( mesh ) squared_distances , face_indices , closest_points = bvh . lookup ( pts ) return squared_distances , face_indices , closest_points