Albatross 3D Forum Forum Index Forum Albatross 3D Forum
Albatross 3D Users Forums
 
Albatross 3D Web Site
 
 
 Register Register 
 Profile Profile    Log in to check your private messages Log in to check your private messages    Log in Log in    Memberlist Memberlist 
 

[SCRIPTING] DynamicArray of Lists

 
Post new topic   Reply to topic    Albatross 3D Forum Forum Index -> How To
View previous topic :: View next topic  
Author Message
rael.delcon



Joined: 25 Nov 2008
Posts: 15

PostPosted: Sun Dec 14, 2008 7:56 am    Post subject: [SCRIPTING] DynamicArray of Lists Reply with quote

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
View user's profile Send private message
craouette
Site Admin


Joined: 26 Apr 2004
Posts: 652
Location: luxembourg

PostPosted: Mon Dec 22, 2008 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Albatross 3D Forum Forum Index -> How To All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group