corrected issues due to the const non const changes...

This commit is contained in:
Paolo Cignoni cignoni 2012-11-28 11:13:20 +00:00
parent 2cc7d9c841
commit 7d8c273ba9
3 changed files with 4 additions and 10 deletions

View File

@ -147,7 +147,7 @@ bool PlyMCPlugin::applyFilter(QAction *filter, MeshDocument &md, RichParameterSe
tri::Append<SMesh,CMeshO>::Mesh(sm, mm->cm/*,false,p.VertSplatFlag*/); // note the last parameter of the append to prevent removal of unreferenced vertices...
tri::UpdatePosition<SMesh>::Matrix(sm, mm->cm.Tr,true);
tri::UpdateBounding<SMesh>::Box(sm);
tri::UpdateNormals<SMesh>::NormalizeVertex(sm);
tri::UpdateNormal<SMesh>::NormalizePerVertex(sm);
//QString mshTmpPath=QDir::tempPath()+QString("/")+QString(mm->shortName())+QString(".vmi");
QString mshTmpPath=QString("__TMP")+QString(mm->shortName())+QString(".vmi");
qDebug("Saving tmp file %s",qPrintable(mshTmpPath));

View File

@ -22,20 +22,14 @@
#include <locale>
#include <iostream>
//#include <tchar.h>
#include <list>
#include <limits>
#include <vcg/space/index/grid_static_ptr.h>
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/complex/used_types.h>
#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/update/position.h>
#include <vcg/complex/algorithms/update/normal.h>
#include <vcg/complex/algorithms/update/quality.h>
#include <vcg/complex/algorithms/update/edges.h>
#include <vcg/complex/algorithms/update/topology.h>
#include <vcg/complex/algorithms/update/flag.h>
#include <vcg/complex/algorithms/update/bounding.h>
@ -203,7 +197,7 @@ bool InitMesh(SMesh &m, const char *filename, Matrix44f Tr)
if(!(loadmask & tri::io::Mask::IOM_VERTQUALITY))
tri::UpdateQuality<SMesh>::VertexConstant(m,0);
tri::UpdateNormals<SMesh>::PerVertexMatrix(m,Tr);
tri::UpdateNormal<SMesh>::PerVertexMatrix(m,Tr);
//if(!(loadmask & tri::io::Mask::IOM_VERTCOLOR))
// saveMask &= ~tri::io::Mask::IOM_VERTCOLOR;
}
@ -215,7 +209,7 @@ bool InitMesh(SMesh &m, const char *filename, Matrix44f Tr)
printf("Removed %i duplicates and %i unref",dup,unref);
}
tri::UpdateNormals<SMesh>::PerVertexNormalizedPerFaceNormalized(m);
tri::UpdateNormal<SMesh>::PerVertexNormalizedPerFaceNormalized(m);
if(p.GeodesicQualityFlag) {
tri::UpdateTopology<SMesh>::VertexFace(m);
tri::UpdateFlags<SMesh>::FaceBorderFromVF(m);

View File

@ -163,7 +163,7 @@ public:
const Color4b C4b() const
{
static Color4b cc;
cc.SetRGB(c[0],c[1],c[2]);
cc=Color4b(c[0],c[1],c[2],255);
return cc;
}
inline void Blend( Voxelfc const & vx, scalar w)