Terrain and heights arrays

Hi,

i happen to have a map with real heights and i did a very easy script to modify my terrain based on it.
The map i have its composed by sample points 357x233 with a horizontal resolution of 100 meters.

The problem is using TerrainData.GetHeights i dont find a way to get exactly 357x233 but always a square…and the size depend on the height resolution.

Is there a way to do this right?

im using c#

Thanks

You can pad the data, or ‘scale’ it (interpolate it) out to a power-of-two-plus-one-sized square.