Skip to content

bloqade.geometry.dialects.grid.repeat

← Module overview

functionrepeatsource

bloqade.geometry.dialects.grid.repeat

Signature
def repeat(grid: Grid, x_times: int, y_times: int, x_spacing: float, y_spacing: float) -> Grid

Repeat a grid in the x and y directions.

Returns: Grid: a new grid object with the repeated pattern

Parameters

NameTypeDescription
gridGrida grid object
x_timesintnumber of times to repeat in the x direction
y_timesintnumber of times to repeat in the y direction
x_spacingfloatspacing in the x direction
y_spacingfloatspacing in the y direction

Returns

Grid

source