C#

Gl.glBegin(Gl.GL_LINES); for (int i = 0; i < coordinate.size; i +=2) { Gl.glVertex3f(coordinate[i][0], coordinate[i][1], coordinate[i][2]); // origin of the line Gl.glVertex3f(coordinate[i+1][0], coordinate[i+1][1], coordinate[i+1][2]); // ending point of the line } Gl.glEnd();

Which basically draws a line between each pair of vertices. If the ending point of one vertex is the same as the beginning of the next, then change the increment value of the loop to 1 rather than 2.

`for`

or`while`

statement in C#?Example:

<pre lang='cs'>

coordinate[0,0] = x

coordinate[0,1] = y

coordinate[0,2] = z</pre>

And then

<pre lang='cs'>

coordinate[1,0] = x

coordinate[1,1] = y

coordinate[1,2] = z</pre> ...and so on!

So i want now to place every single 'dot' of this into <pre lang='cs'>Gl.glVertex3f(float x, float y, float z)</pre>

I use <pre>Gl.glBegin(Gl.GL_LINE_STRIP);<pre>

And after all this done in a loop, a terain connected with all these dots and lines should show up.

I hope i've give more information then before! Thnx for replying!