diff --git a/vcg/complex/trimesh/polygon_support.h b/vcg/complex/trimesh/polygon_support.h index c553392a..0ef331c1 100644 --- a/vcg/complex/trimesh/polygon_support.h +++ b/vcg/complex/trimesh/polygon_support.h @@ -60,7 +60,7 @@ namespace vcg typename TriMeshType ::VertexIterator tvi = Allocator::AddVertices(tm,pm.vert.size()); int cnt = 0; for(tvi = tm.vert.begin(),vi = pm.vert.begin(); tvi != tm.vert.end(); ++tvi,++vi,++cnt) - if(!(*vi).IsD()) (*tvi).ImportLocal(*vi); else vcg::tri::Allocator::DeleteVertex(tm,(*tvi)); + if(!(*vi).IsD()) (*tvi).ImportData(*vi); else vcg::tri::Allocator::DeleteVertex(tm,(*tvi)); typename PolyMeshType::FaceIterator fi; for(fi = pm.face.begin(); fi != pm.face.end(); ++fi) @@ -98,7 +98,7 @@ namespace vcg typename TriMeshType ::ConstVertexIterator tvi; typename PolyMeshType::VertexIterator vi = vcg::tri::Allocator::AddVertices(pm,tm.vert.size()); for(tvi = tm.vert.begin(); tvi != tm.vert.end(); ++tvi,++vi,++cnt) - if(!(*tvi).IsD())(*vi).ImportLocal(*tvi); else vcg::tri::Allocator ::DeleteVertex(pm,(*vi)); + if(!(*tvi).IsD())(*vi).ImportData(*tvi); else vcg::tri::Allocator ::DeleteVertex(pm,(*vi)); // convert the faces typename TriMeshType::FaceIterator tfi;