From fe0a137812fd435ff2dea9888bed4467c1c9edfc Mon Sep 17 00:00:00 2001 From: gianpaolopalma Date: Fri, 18 Apr 2014 15:40:23 +0000 Subject: [PATCH] Bug fixed in the save of the edge data in a binary PLY --- wrap/io_trimesh/export_ply.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/io_trimesh/export_ply.h b/wrap/io_trimesh/export_ply.h index 00955b33..7c11b098 100644 --- a/wrap/io_trimesh/export_ply.h +++ b/wrap/io_trimesh/export_ply.h @@ -727,7 +727,7 @@ static int Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &p { eauxvv[0]=indices[ei->cV(0)]; eauxvv[1]=indices[ei->cV(1)]; - fwrite(vv,sizeof(int),2,fpout); + fwrite(eauxvv,sizeof(int),2,fpout); } else // ***** ASCII ***** fprintf(fpout,"%d %d \n", indices[ei->cV(0)], indices[ei->cV(1)]);