code: def kdtree(self):
          
  
          kdtree = KDTree(self.vertices.view(np.ndarray))
          return kdtree
docs: A KDTree object holding the vertices of the path.
  
          Returns
          ----------
          kdtree: scipy.spatial.cKDTree object holding self.vertices