I am trying to visualize if the attached diagram of data of triangles is correct for the attached hill image. I used a nested for loop to find all triangles with any vertices having a height greater than zero. The two triangles marked with an X surprisingly have no height values and the shape of the triangles is odd to me. The triangles marked with A are left triangles and the triangles marked with B are right triangles. The rendering was done in OpenGL with C++, and the X coordinates and Z coordinates are by convention.
The one point with a height is shown here:
void addHillsManually()
{
heightMapFromArray[20][20] = .5;
}
Thank you,
Josheir