Update of /cvsroot/plib/plib/src/ssg
In directory usw-pr-cvs1:/tmp/cvs-serv10026
Modified Files:
ssgLoadBGL.cxx
Log Message:
Called "removeUnusedVertices" to optimize the output of the loader.
Index: ssgLoadBGL.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadBGL.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ssgLoadBGL.cxx 20 Jul 2002 19:30:57 -0000 1.11
+++ ssgLoadBGL.cxx 22 Jul 2002 15:10:20 -0000 1.12
@@ -1255,6 +1255,7 @@
curr_part_->setState( createState(has_texture, color) );
}
ssgBranch* grp = getCurrGroup();
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
}
@@ -1292,6 +1293,7 @@
curr_part_->setState( createState(true, color) );
ssgBranch* grp = getCurrGroup();
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
}
@@ -1894,7 +1896,8 @@
curr_index_ );
curr_part_->setState( createState(false, LColor) );
ssgBranch* grp = getCurrGroup();
- grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
+ grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
poly_from_line_numverts = 0;
}
break;
@@ -2003,7 +2006,8 @@
curr_part_->setState( createState(true, GColor) );
ssgBranch* grp = getCurrGroup();
- grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
+ grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
}
break;
@@ -2032,7 +2036,8 @@
curr_tex_wrap_ = TRUE;
curr_part_->setState( createState(false, SColor) );
ssgBranch* grp = getCurrGroup();
- grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
+ grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
}
break;
@@ -2228,7 +2233,8 @@
curr_part_->setState( createState(false, LColor) );
}
ssgBranch* grp = getCurrGroup();
- grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
+ grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
poly_from_line = false;
}
@@ -2743,7 +2749,8 @@
strips );
curr_part_->setState( createState(true, SColor) );
ssgBranch* grp = getCurrGroup();
- grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
+ ((ssgVtxArray *)curr_part_)->removeUnusedVertices();
+ grp->addKid( current_options -> createLeaf(curr_part_, NULL) );
}
}
}
|