View Single Post
Old 19th March 2004, 10:32 AM   #5
Professional user
Andy's Avatar
Join Date: Jun 2003
Posts: 4,452
Default Re: Adding lots of surfaces quickly - Importer plugin


>is there a quicker way to get a list of all the Vertex pointers?

You can use:

Prototype ListData *list_create_array(List *l, int numitems); // free with myfree()
on a list. It returns an array of the list-data pointers e.g. give this the list of an object's vertices. Each item in the array will then be the address of each vertex.

free the block of memory with myfree().

Andy is offline   Reply With Quote