diff --git a/wrap/dae/colladaformat.h b/wrap/dae/colladaformat.h index ec3bae06..6c8b4475 100644 --- a/wrap/dae/colladaformat.h +++ b/wrap/dae/colladaformat.h @@ -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)); diff --git a/wrap/io_trimesh/export_idtf.h b/wrap/io_trimesh/export_idtf.h index ea7b5a24..2cf6be0d 100644 --- a/wrap/io_trimesh/export_idtf.h +++ b/wrap/io_trimesh/export_idtf.h @@ -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,"}");