getRegularGridIndices

fun getRegularGridIndices(width: Double, height: Double): TypedArray<*, *>(source)

Gets a list of indices for a triangle mesh representing a regular grid. Calling this function multiple times with the same grid width and height returns the same list of indices. The total number of vertices must be less than or equal to 65536.

Return

The list of indices. Uint16Array gets returned for 64KB or less and Uint32Array for 4GB or less.

Parameters

width

The number of vertices in the regular grid in the horizontal direction.

height

The number of vertices in the regular grid in the vertical direction.

See also