Addded check for no color in mesh

This commit is contained in:
Federico Ponchio 2007-11-06 16:12:24 +00:00
parent d8805f9ba5
commit 3bb9c7cbc6
1 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.11 2006/06/08 13:55:16 cignoni
Added ColorPreserving Cellbase template.
Revision 1.10 2006/05/26 10:18:11 cignoni
Re-adapted to ms compilers
@ -323,7 +326,8 @@ class Clustering
for(gi=GridCell.begin();gi!=GridCell.end();++gi)
{
m.vert[i].P()=(*gi).second.Pos();
m.vert[i].C()=(*gi).second.Col();
if(m.vert[i].HasColor())
m.vert[i].C()=(*gi).second.Col();
(*gi).second.id=i;
++i;
}