mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Added getHeights1D() function to TerrainEngine
This commit is contained in:
@@ -20,6 +20,16 @@ namespace OpenSim.Terrain
|
||||
|
||||
}
|
||||
|
||||
public float[] getHeights1D()
|
||||
{
|
||||
float[] heights = new float[w*h];
|
||||
int i;
|
||||
for(i=0;i<w*h;i++) {
|
||||
heights[i] = (int)(i / w) + (i % w);
|
||||
}
|
||||
return heights;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Swaps the references between the height and water buffers to allow you to edit the water heightmap. Remember to swap back when you are done.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user