Class Heightmap
Class representing a heightmap
public sealed class Heightmap
- Inheritance
-
Heightmap
- Inherited Members
Remarks
This class is no longer used in DSF. Also note that the heightmap format is now slightly different
Constructors
Heightmap()
public Heightmap()
Properties
NumX
Number of probe points in X direction
public int NumX { get; set; }
Property Value
NumY
Number of probe points in Y direction
public int NumY { get; set; }
Property Value
Radius
Probing radius on delta geometries
public float Radius { get; set; }
Property Value
XMax
X end coordinate of the heightmap
public float XMax { get; set; }
Property Value
XMin
X start coordinate of the heightmap
public float XMin { get; set; }
Property Value
XSpacing
Spacing between the probe points in X direction
public float XSpacing { get; set; }
Property Value
YMax
Y end coordinate of the heightmap
public float YMax { get; set; }
Property Value
YMin
Y start coordinate of the heightmap
public float YMin { get; set; }
Property Value
YSpacing
Spacing between the probe points in Y direction
public float YSpacing { get; set; }
Property Value
ZCoordinates
Z coordinate of each probe point
public float[] ZCoordinates { get; set; }
Property Value
- float[]
Methods
Load(string)
Load a new heightmap from the given CSV file
public void Load(string filename)
Parameters
filenamestringPath to the file
Exceptions
- IOException
Invalid file
LoadAsync(string)
Load a new heightmap from the given CSV file asynchronously
public Task LoadAsync(string filename)
Parameters
filenamestringPath to the file
Returns
- Task
Asynchronous task
Exceptions
- IOException
Invalid file
Save(string)
Save a heightmap to the given CSV file
public void Save(string filename)
Parameters
filenamestringFilename of the heightmap
SaveAsync(string)
Save a heightmap to the given CSV file asynchronously
public Task SaveAsync(string filename)
Parameters
filenamestringFilename of the heightmap
Returns
- Task
Asynchronous task