gcc compiling issues

This commit is contained in:
Paolo Cignoni 2007-12-05 23:08:13 +00:00
parent eca61c1656
commit ebff0b88dd
2 changed files with 11 additions and 10 deletions

View File

@ -6,6 +6,7 @@
#include <fstream> #include <fstream>
#include <ostream> #include <ostream>
#include <vcg/complex/trimesh/update/bounding.h> #include <vcg/complex/trimesh/update/bounding.h>
#include <wrap/io_trimesh/io_mask.h>
class TextUtility class TextUtility
@ -106,7 +107,7 @@ typedef typename SaveMeshType::CoordType CoordType;
idtf.write(0,"}"); idtf.write(0,"}");
if (mask & vcg::tri::io::Mask::IOM_WEDGTEXCOORD) if (mask & Mask::IOM_WEDGTEXCOORD)
{ {
idtf.write(0,"RESOURCE_LIST \"TEXTURE\" {"); idtf.write(0,"RESOURCE_LIST \"TEXTURE\" {");
@ -192,11 +193,11 @@ typedef typename SaveMeshType::CoordType CoordType;
idtf.write(3,"MODEL_POSITION_LIST {"); idtf.write(3,"MODEL_POSITION_LIST {");
vcg::tri::UpdateBounding<SaveMeshType>::Box(m); vcg::tri::UpdateBounding<SaveMeshType>::Box(m);
SaveMeshType::ScalarType diag = m.bbox.Diag(); ScalarType diag = m.bbox.Diag();
SaveMeshType::CoordType center = m.bbox.Center(); CoordType center = m.bbox.Center();
for(ConstVertexIterator vit = m.vert.begin();vit != m.vert.end();++vit) for(ConstVertexIterator vit = m.vert.begin();vit != m.vert.end();++vit)
{ {
SaveMeshType::CoordType tmp = (vit->P() - center)/diag; CoordType tmp = (vit->P() - center)/diag;
idtf.write(4,TextUtility::nmbToStr(tmp.X()) + " " + idtf.write(4,TextUtility::nmbToStr(tmp.X()) + " " +
TextUtility::nmbToStr(tmp.Z()) + " " + TextUtility::nmbToStr(tmp.Z()) + " " +
TextUtility::nmbToStr(tmp.Y())); TextUtility::nmbToStr(tmp.Y()));
@ -240,12 +241,12 @@ typedef typename SaveMeshType::CoordType CoordType;
int capability = 0; int capability = 0;
//vert //vert
capability |= MeshModel::IOM_VERTNORMAL; capability |= Mask::IOM_VERTNORMAL;
////wedg ////wedg
capability |= MeshModel::IOM_WEDGTEXCOORD; capability |= Mask::IOM_WEDGTEXCOORD;
capability |= MeshModel::IOM_WEDGNORMAL; capability |= Mask::IOM_WEDGNORMAL;
return capability; return capability;
} }

View File

@ -173,12 +173,12 @@ public:
int capability = 0; int capability = 0;
//vert //vert
capability |= MeshModel::IOM_VERTNORMAL; capability |= Mask::IOM_VERTNORMAL;
////wedg ////wedg
capability |= MeshModel::IOM_WEDGTEXCOORD; capability |= Mask::IOM_WEDGTEXCOORD;
capability |= MeshModel::IOM_WEDGNORMAL; capability |= Mask::IOM_WEDGNORMAL;
return capability; return capability;
} }