gplugins.gmsh.get_u_bounds_layers

gplugins.gmsh.get_u_bounds_layers#

gplugins.gmsh.get_u_bounds_layers(layer_polygons_dict: dict[tuple(str, str, str), MultiPolygon], xsection_bounds: tuple[tuple[float, float], tuple[float, float]])[source]#

Given a layer_polygons_dict and two coordinates (x1,y1), (x2,y2), computes the bounding box(es) of each layer in the xsection coordinate system (u).

Parameters:
  • layer_polygons_dict – dict containing layernames: shapely polygons pairs

  • xsection_bounds – ( (x1,y1), (x2,y2) ), with x1,y1 beginning point of cross-sectional line and x2,y2 the end.

Returns: Dict containing layer(list pairs, with list a list of bounding box coordinates (u1,u2))

in xsection line coordinates.