bloqade.geometry.dialects.filled.fill
← Module overview
function
source
functionfill¶source
bloqade.geometry.dialects.filled.fill
Signature
def fill(zone: grid.Grid[Nx, Ny], filled: ilist.IList[tuple[int, int], Any] | list[tuple[int, int]]) -> FilledGrid[Nx, Ny]Create a FilledGrid by filling specified positions in a grid.
Parameters
| Name | Type | Description |
|---|---|---|
zone | grid.Grid[Nx, Ny] | The original grid in which positions will be filled. |
filled | ilist.IList[tuple[int, int], Any] | list[tuple[int, int]] | An IList or list of (x_index, y_index) tuples indicating positions to fill |
Returns
FilledGrid[Nx, Ny]A FilledGrid with the specified positions filled.