From 2b2b828b435167a1f2b99425270c172a5ca38ae4 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 14 Nov 2014 23:05:40 +0000 Subject: [PATCH] Correct printing of normal values in off files --- wrap/io_trimesh/export_off.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/io_trimesh/export_off.h b/wrap/io_trimesh/export_off.h index 44d14c3a..2fc5c17b 100644 --- a/wrap/io_trimesh/export_off.h +++ b/wrap/io_trimesh/export_off.h @@ -95,7 +95,7 @@ public: fprintf(fpout,"%d %d %d %d ",vp->C()[0],vp->C()[1],vp->C()[2],vp->C()[3] ); if( tri::HasPerVertexNormal(m) && (mask & io::Mask::IOM_VERTNORMAL) ) - fprintf(fpout,"%g %g %g ", vp->N()[0],vp->N()[1],vp->N()[2]); + fprintf(fpout,"%g %g %g ", double(vp->N()[0]),double(vp->N()[1]),double(vp->N()[2])); if( tri::HasPerVertexTexCoord(m) && (mask & io::Mask::IOM_VERTTEXCOORD) ) fprintf(fpout,"%g %g ",vp->T().u(),vp->T().v());