Exemplo n.º 1
0
 /// <summary>
 /// Generates a Terrain (deformed plane) according to the 2D data
 /// </summary>
 /// <param name="data2D">The height data representation of the image</param>
 /// <param name="maxHeight">The maximum height the terrain should have </param>
 /// <returns>Returns a mesh representing the generated terrain.</returns>
 public static Mesh GenerateTerrain(DataGrid data2D, int maxHeight)
 {
     return(MeshGenerator.ConstructGrid(data2D, maxHeight));
 }