Skip to content

bloqade.geometry.dialects.filled.fill

← Module overview

functionfillsource

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

NameTypeDescription
zonegrid.Grid[Nx, Ny]The original grid in which positions will be filled.
filledilist.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.

source