diff --git a/wrap/io_trimesh/export_obj.h b/wrap/io_trimesh/export_obj.h index a91c7dc8..98f14de2 100644 --- a/wrap/io_trimesh/export_obj.h +++ b/wrap/io_trimesh/export_obj.h @@ -235,7 +235,7 @@ namespace io { } assert(numvert == m.vn); - fprintf(fp,"# %d vertices, %d vertices normals\n\n",m.vn,NormalVertex.size()); + fprintf(fp,"# %d vertices, %d vertices normals\n\n",m.vn,int(NormalVertex.size())); //faces + texture coords FaceIterator fi; @@ -304,7 +304,7 @@ namespace io { } }//for - fprintf(fp,"# %d faces, %d coords texture\n\n",m.face.size(),CoordIndexTexture.size()); + fprintf(fp,"# %d faces, %d coords texture\n\n",m.fn,int(CoordIndexTexture.size())); fprintf(fp,"# End of File"); fclose(fp); @@ -342,7 +342,7 @@ namespace io { /* returns index of the vertex normal */ - inline static int GetIndexVertexNormal(SaveMeshType &m, std::map &mapNormToInt, const Point3f &norm ) + inline static int GetIndexVertexNormal(SaveMeshType &/*m*/, std::map &mapNormToInt, const Point3f &norm ) { std::map::iterator iter= mapNormToInt.find(norm); if(iter != mapNormToInt.end()) return (*iter).second; diff --git a/wrap/io_trimesh/export_stl.h b/wrap/io_trimesh/export_stl.h index 71d58069..58381bb9 100644 --- a/wrap/io_trimesh/export_stl.h +++ b/wrap/io_trimesh/export_stl.h @@ -89,7 +89,7 @@ static int Save(SaveMeshType &m, const char * filename , bool binary =true, cons if(binary) { // Write Header - char *header="VCG "; + char header[128]="VCG "; if(objectname) strncpy(header,objectname,80); fwrite(header,80,1,fp); // write number of facets diff --git a/wrap/io_trimesh/export_vrml.h b/wrap/io_trimesh/export_vrml.h index 0888d684..09ee7f76 100644 --- a/wrap/io_trimesh/export_vrml.h +++ b/wrap/io_trimesh/export_vrml.h @@ -84,7 +84,7 @@ namespace vcg { ); // Tranche principale - double ss = 8.0/m.bbox.Diag(); + //double ss = 8.0/m.bbox.Diag(); fprintf(fp, "Transform {\n" diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 48fc2230..8ad60d77 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -614,7 +614,7 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi) { assert(m.face.size()==size_t(m.fn)); m.face[i].Alloc(indexedFaces[i].v.size()); // it does not do anything if it is a trimesh - for(int j=0;j