Grid

Grid

MeshData for a Grid.

Constructor

new Grid(xSegmentsopt, ySegmentsopt, widthopt, heightopt)

Parameters:
Name Type Attributes Default Description
xSegments number <optional>
10

Number of columns.

ySegments number <optional>
10

Number of rows.

width number <optional>
1

Total width of the Grid.

height number <optional>
1

Total height of the Grid.

Example
var meshData = new Grid( 10, 10, 10, 10);

Methods

clone() → {Grid}

Returns a clone of this grid