Heightfield constructor
@param data An array of numbers, or height values, that are spread out along the x axis.
Implementation
Heightfield(
this.data,
{
this.maxValue,
this.minValue,
this.elementSize = 1
}):super(type: ShapeType.heightfield){
segments = Size(data.length.toDouble(),data[0].length.toDouble());
size = Size((segments.width-1)*elementSize,(segments.height-1)*elementSize);
if(minValue == null) {
updateMinValue();
}
if (maxValue == null) {
updateMaxValue();
}
updateBoundingSphereRadius();
}