Added a few missing const specifiers

This commit is contained in:
Paolo Cignoni 2012-11-27 22:31:48 +00:00
parent ab49388781
commit eb92432335
2 changed files with 5 additions and 5 deletions

View File

@ -627,7 +627,7 @@ namespace Tags
{
for(unsigned int ii = 0; ii < nedge; ++ii)
{
int dist = it->V(ii) - &(*m.vert.begin());
int dist = vcg::tri::Index(m,it->cV(ii));
_text.push_back(QString::number(dist));
if (vcol)
_text.push_back(QString::number(dist));
@ -650,7 +650,7 @@ namespace Tags
for(unsigned int ii = 0; ii < nedge; ++ii)
{
const typename MESHTYPE::FaceType& f = m.face[*it];
int dist = f.V(ii) - &(*m.vert.begin());
int dist = f.cV(ii) - &(*m.vert.begin());
_text.push_back(QString::number(dist));
if (vcol)
_text.push_back(QString::number(dist));

View File

@ -462,9 +462,9 @@ typedef typename SaveMeshType::CoordType CoordType;
idtf.write(3,"MESH_FACE_POSITION_LIST {");
for(ConstFaceIterator fit = m.face.begin();fit != m.face.end();++fit)
{
idtf.write(4,TextUtility::nmbToStr(fit->V(0) - &(*m.vert.begin())) + " " +
TextUtility::nmbToStr(fit->V(1) - &(*m.vert.begin())) + " " +
TextUtility::nmbToStr(fit->V(2) - &(*m.vert.begin())));
idtf.write(4,TextUtility::nmbToStr(fit->cV(0) - &(*m.vert.begin())) + " " +
TextUtility::nmbToStr(fit->cV(1) - &(*m.vert.begin())) + " " +
TextUtility::nmbToStr(fit->cV(2) - &(*m.vert.begin())));
}
idtf.write(3,"}");