Page 1 of 1

Deform a flat mesh in XZ terms

Posted: Mon Nov 21, 2011 7:36 am
by monchito
Hi
I want to know if there is a way to know what point in a flat mesh correspond to a vertex list in irrlicht. Like to
organize it in a 2d 16x16 array and move the position[0][0] , position[0][16], etc , are a corners of the mesh. Don't know
how to do it. Any Ideas are wellcome.
.__ . __ . __ . __ .
| | | | |
. . . . .
|
.
|
.__ . __ .__ . __ .

Re: Deform a flat mesh in XZ terms

Posted: Mon Nov 21, 2011 9:26 am
by hybrid
If you use the createPlaneMesh from Irrlicht, you can look up the code and derive the numbers from there. Or you simply create the mesh on your own, to be sure that the creation scheme does not change. But besides that it's possible to directly access vertices, yes.