View previous topic :: View next topic |
Author |
Message |
rael.delcon
Joined: 25 Nov 2008 Posts: 15
|
Posted: Sun Dec 14, 2008 7:56 am Post subject: [SCRIPTING] DynamicArray of Lists |
|
|
Is it possible to create a dynamic array of lists?
I need to traverse the model's vertices and for each vertex create the list of faces that are incident to that vertex.
I've tried intListDArray but I got a parser error, is there any other way?
Thanks |
|
Back to top |
|
|
craouette Site Admin
Joined: 26 Apr 2004 Posts: 652 Location: luxembourg
|
Posted: Mon Dec 22, 2008 11:03 am Post subject: |
|
|
intListDArray is not a valid type. I can create it if you want.
Otherwise, you can use two intDarray, one of size the number of vertices.
each cell of this array will store the first index in the second array.
the second array will be the faces indexes, which will grow as you proceed.
The last possibility is to add this function, as it is a quite useful and common one.
craouette |
|
Back to top |
|
|
|