Addded check for no color in mesh
This commit is contained in:
parent
d8805f9ba5
commit
3bb9c7cbc6
|
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.10 2006/05/26 10:18:11 cignoni
|
||||||
Re-adapted to ms compilers
|
Re-adapted to ms compilers
|
||||||
|
|
||||||
|
|
@ -323,6 +326,7 @@ class Clustering
|
||||||
for(gi=GridCell.begin();gi!=GridCell.end();++gi)
|
for(gi=GridCell.begin();gi!=GridCell.end();++gi)
|
||||||
{
|
{
|
||||||
m.vert[i].P()=(*gi).second.Pos();
|
m.vert[i].P()=(*gi).second.Pos();
|
||||||
|
if(m.vert[i].HasColor())
|
||||||
m.vert[i].C()=(*gi).second.Col();
|
m.vert[i].C()=(*gi).second.Col();
|
||||||
(*gi).second.id=i;
|
(*gi).second.id=i;
|
||||||
++i;
|
++i;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue