From d014eae1bc66e710fce8cedfdaa02fb123b476fa Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 18 Mar 2008 10:31:47 +0000 Subject: [PATCH] added color interpolation to butterfly --- vcg/complex/trimesh/refine.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/complex/trimesh/refine.h b/vcg/complex/trimesh/refine.h index d279b11b..ace6fca8 100644 --- a/vcg/complex/trimesh/refine.h +++ b/vcg/complex/trimesh/refine.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.17 2007/03/27 09:25:14 cignoni +corrected managment of selected flag when refining the whole mesh flipmesh + Revision 1.16 2007/03/12 15:37:18 tarini Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. @@ -529,6 +532,10 @@ struct MidPointButterfly : public std::unary_functionP(); he.FlipV(); vr=&he.v->P(); + + if( MESH_TYPE::HasPerVertexColor()) + nv.C().lerp(ep.f->V(ep.z)->C(),ep.f->V1(ep.z)->C(),.5f); + if(he.IsBorder()) { he.NextB();