makeGridIndices

fun makeGridIndices(nRows: Int, nCols: Int): IntArray

Creates grid indices for a mesh with the specified number of rows and columns.

Return

An array of indices for individual triangles.

Parameters

nRows

Number of rows in the mesh.

nCols

Number of columns in the mesh.