From c3ce8910decb93b357a494ed55a25202d21e12bb Mon Sep 17 00:00:00 2001 From: mtarini Date: Mon, 23 Jul 2007 13:27:50 +0000 Subject: [PATCH] fixed bug on saving flags-per-face --- wrap/io_trimesh/export_ply.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wrap/io_trimesh/export_ply.h b/wrap/io_trimesh/export_ply.h index f41a2e9e..c66be4b3 100644 --- a/wrap/io_trimesh/export_ply.h +++ b/wrap/io_trimesh/export_ply.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.23 2007/03/12 16:40:17 tarini +Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. + Revision 1.22 2007/02/18 08:01:07 cignoni Added missing typename @@ -502,7 +505,7 @@ static int Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &p fwrite(&c,1,1,fpout); fwrite(vv,sizeof(int),3,fpout); - if(m.HasPerVertexFlags()&&( pi.mask & Mask::IOM_FACEFLAGS) ) + if(m.HasPerFaceFlags()&&( pi.mask & Mask::IOM_FACEFLAGS) ) fwrite(&(fp->Flags()),sizeof(int),1,fpout); if( m.HasPerVertexTexCoord() && (pi.mask & Mask::IOM_VERTTEXCOORD) ) @@ -578,7 +581,7 @@ static int Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &p fprintf(fpout,"3 %d %d %d ", indices[fp->cV(0)], indices[fp->cV(1)], indices[fp->cV(2)] ); - if(m.HasPerVertexFlags()&&( pi.mask & Mask::IOM_FACEFLAGS )) + if(m.HasPerFaceFlags()&&( pi.mask & Mask::IOM_FACEFLAGS )) fprintf(fpout,"%d ",fp->Flags()); if( m.HasPerVertexTexCoord() && (pi.mask & Mask::IOM_VERTTEXCOORD) )