From ef0be79493b376693a0732001d2931bda359caba Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Thu, 21 Sep 2017 12:06:39 +0200 Subject: [PATCH] fixed bug in VEEdgeSplit --- vcg/simplex/edge/topology.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/edge/topology.h b/vcg/simplex/edge/topology.h index c6124a58..eba1481a 100644 --- a/vcg/simplex/edge/topology.h +++ b/vcg/simplex/edge/topology.h @@ -203,8 +203,9 @@ void VEEdgeSplit(MeshType &poly, typename MeshType::EdgeType *e, typename MeshTy edge::VEDetach(*e,1); e->V(1) = &v; edge::VEAppend(e,1); -// tri::Allocator:: template PointerUpdater pu; - typename MeshType::EdgeIterator ei = tri::Allocator::AddEdges(poly, 1); + tri::Allocator:: template PointerUpdater pu; + typename MeshType::EdgeIterator ei = tri::Allocator::AddEdges(poly, 1, pu); + pu.Update(e); ei->ImportData(*e); ei->V(0)=&v; ei->V(1)=v1;