fromArray1D static method
Set the height of plane vertices from a 1D array of heightmap values.
Float32List vertices A 1D array containing the vertex positions of the geometry representing the terrain. List<double> src A 1D array representing a heightmap to apply to the terrain.
Implementation
static void fromArray1D(Float32List vertices, List<double> src) {
for (int i = 0, l = math.min<int>(vertices.length ~/ 3, src.length); i < l; i++) {
vertices[i*3 + 2] = src[i];
}
}