gplugins.gmsh.get_uz_bounds_layers

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) of each layer in the xsection coordinate system (u,z).

Parameters:
  • component – Component or ComponentReference.

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

Returns: Dict containing layer: polygon pairs, with (u1,u2) in xsection line coordinates