Configuration for the grid geometry.
The number of divisions (lines) on the X and Z axes. Default is 1
.
The size of the grid along both the X and Z axes. Default is 1
.
The geometry arrays for the grid, including positions and indices for the lines.
Creates a grid-shaped SceneGeometry.
This function generates the geometry arrays for a grid, which consists of lines along the X and Z axes, creating a grid pattern. The grid can be configured in terms of its size and number of divisions. The function returns the geometry arrays, including vertex positions and indices for drawing the grid.
Usage