View Single Post
Old 5th December 2004, 08:01 PM   #1
LiveWire
Senior Member
Professional user
 
Join Date: Nov 2003
Location: Eugene OR, USA
Posts: 212
Default Adding Vertices(in list) to and Object.

take a look at:
Code:
List *VertList;
for(loop...)
{
    Vertex *temp_vert = new_vertex_set(x, y, z);
    list_add_item(&VertexList, temp_vert);
}
object_add_vertices(return_Object, VertexList);
it always brings up the error:
Code:
Exception occured in command load_file_select.
Last Error(not necessarily the problem): The operation completed successfully.
but it works when i use:
Code:
for(loop...)
{
    Vertex *temp_vert = new_vertex_set(x, y, z);
    object_add_vertex(return_Object, temp_vert);
}

im trying to get my code to run faster.
any help?
--Phil
LiveWire is offline   Reply With Quote