Bug fixed in the save of the edge data in a binary PLY

This commit is contained in:
Gianpaolo Palma 2014-04-18 15:40:23 +00:00
parent 30a7ecf743
commit fe0a137812
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ static int Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &p
{ {
eauxvv[0]=indices[ei->cV(0)]; eauxvv[0]=indices[ei->cV(0)];
eauxvv[1]=indices[ei->cV(1)]; eauxvv[1]=indices[ei->cV(1)];
fwrite(vv,sizeof(int),2,fpout); fwrite(eauxvv,sizeof(int),2,fpout);
} }
else // ***** ASCII ***** else // ***** ASCII *****
fprintf(fpout,"%d %d \n", indices[ei->cV(0)], indices[ei->cV(1)]); fprintf(fpout,"%d %d \n", indices[ei->cV(0)], indices[ei->cV(1)]);