TerrainSurface

TerrainSurface

A grid-like surface shape

Constructor

new TerrainSurface(heightMatrix, xWidth, yHeight, zWidth)

Parameters:
Name Type Description
heightMatrix array

The height data by x and z axis.

xWidth number

x axis size in units

yHeight number

y axis size in units

zWidth number

z axis size in units

Methods

rebuild() → {Surface}

Builds or rebuilds the mesh data