Added a few missing const specifiers
This commit is contained in:
parent
ab49388781
commit
eb92432335
|
@ -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));
|
||||
|
|
|
@ -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,"}");
|
||||
|
||||
|
|
Loading…
Reference in New Issue