gplugins.gmsh.get_uz_bounds_layers#
- gplugins.gmsh.get_uz_bounds_layers(layer_polygons_dict: dict[str, tuple[str, MultiPolygon, MultiPolygon]], xsection_bounds: tuple[tuple[float, float], tuple[float, float]], layer_stack: LayerStack, u_offset: float = 0.0, z_bounds: tuple[float, float] | None = None)[source]#
Given a component and layer stack, computes the bounding box(es).
For each layer in the xsection coordinate system (u,z).
- 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.
layer_stack – LayerStack object containing layer information.
u_offset – amount to offset the returned polygons in the lateral dimension.
z_bounds – optional tuple containing the zmin and zmax of the simulation region.
Returns: Dict containing layer: polygon pairs, with (u1,u2) in xsection line coordinates