bloqade.geometry.dialects.grid.repeat
← Module overview
function
source
functionrepeat¶source
bloqade.geometry.dialects.grid.repeat
Signature
def repeat(grid: Grid, x_times: int, y_times: int, x_spacing: float, y_spacing: float) -> GridRepeat a grid in the x and y directions.
Returns: Grid: a new grid object with the repeated pattern
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid | a grid object |
x_times | int | number of times to repeat in the x direction |
y_times | int | number of times to repeat in the y direction |
x_spacing | float | spacing in the x direction |
y_spacing | float | spacing in the y direction |
Returns
Grid