Added importdata in VEEdgeSplit so when we refine we copy the data (like color/quality) of an edge onto the new one

This commit is contained in:
Paolo Cignoni 2017-09-07 19:01:05 +02:00
parent 6b11cc44d9
commit 87b14b54af
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ void VEEdgeSplit(MeshType &poly, typename MeshType::EdgeType *e, typename MeshTy
edge::VEAppend(e,1);
// tri::Allocator<MeshType>:: template PointerUpdater<typename MeshType::EdgePointer> pu;
typename MeshType::EdgeIterator ei = tri::Allocator<MeshType>::AddEdges(poly, 1);
ei->ImportData(*e);
ei->V(0)=&v;
ei->V(1)=v1;
edge::VEAppend(&*ei,0);