code: def extrude_polygon(polygon,
                      height,
                      **kwargs):
      
      vertices, faces = triangulate_polygon(polygon, **kwargs)
      mesh = extrude_triangulation(vertices=vertices,
                                   faces=faces,
                                   height=height,
                                   **kwargs)
      return mesh
docs: Extrude a 2D shapely polygon into a 3D mesh
  
      Parameters
      ----------
      polygon : shapely.geometry.Polygon
        2D geometry to extrude
      height : float
        Distance to extrude polygon along Z
      **kwargs:
          passed to Trimesh
  
      Returns
      ----------
      mesh : trimesh.Trimesh
        Resulting extrusion as watertight body