code: def medial_axis(self, resolution=None, clip=None):
          
          if resolution is None:
              resolution = self.scale / 1000.0
  
          # convert the edges to Path2D kwargs
          from .exchange.misc import edges_to_path
  
          # edges and vertices
          edge_vert = [polygons.medial_axis(i, resolution, clip)
                       for i in self.polygons_full]
          # create a Path2D object for each region
          medials = [Path2D(**edges_to_path(
              edges=e, vertices=v)) for e, v in edge_vert]
  
          # get a single Path2D of medial axis
          medial = concatenate(medials)
  
          return medial
docs: Find the approximate medial axis based
          on a voronoi diagram of evenly spaced points on the
          boundary of the polygon.
  
          Parameters
          ----------
          resolution : None or float
            Distance between each sample on the polygon boundary
          clip : None, or (2,) float
            Min, max number of samples
  
          Returns
          ----------
          medial : Path2D object
            Contains only medial axis of Path