From 2f208bb6fa0f962c569128e6fc3a76d0bae41927 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 26 Aug 2014 09:41:44 +0000 Subject: [PATCH] refactored the filter that builds an edgemesh with the function in platonic.h --- src/meshlabplugins/filter_meshing/meshfilter.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/meshlabplugins/filter_meshing/meshfilter.cpp b/src/meshlabplugins/filter_meshing/meshfilter.cpp index c5554f57a..548125ba2 100644 --- a/src/meshlabplugins/filter_meshing/meshfilter.cpp +++ b/src/meshlabplugins/filter_meshing/meshfilter.cpp @@ -1491,19 +1491,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction * filter, MeshDocument & md, Ric case FP_FAUX_EXTRACT : { MeshModel *em= md.addNewMesh("","EdgeMesh",true,RenderMode(GLW::DMWire)); - tri::RequireCompactness(m.cm); - for(CMeshO::VertexIterator vi=m.cm.vert.begin();vi!=m.cm.vert.end();++vi) - tri::Allocator::AddVertex(em->cm, vi->cP()); - - std::vector< tri::UpdateTopology::PEdge > edgeVec; - tri::UpdateTopology::FillUniqueEdgeVector(m.cm,edgeVec,false); - - for(size_t i=0;i::AddEdge(em->cm, &em->cm.vert[v0i],&em->cm.vert[v1i]); - } + BuildFromNonFaux(m.cm,em->cm); } break; case FP_VATTR_SEAM : {