From de85929aee4f8123e2bfcf2cbdf2b112eee7ff20 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 22 Jan 2006 17:08:50 +0000 Subject: [PATCH] Bug due to wrong compuation of size of auxiliary vector (vn instead of vert.size() ) --- vcg/complex/trimesh/append.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/append.h b/vcg/complex/trimesh/append.h index a65aba73..030d8508 100644 --- a/vcg/complex/trimesh/append.h +++ b/vcg/complex/trimesh/append.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2006/01/11 15:45:21 cignoni +Initial Release + ****************************************************************************/ @@ -92,7 +95,7 @@ static void ImportFace(MeshLeft &ml, MeshRight &mr, FaceLeft &fl, FaceRight &fr, static void Mesh(MeshLeft& ml, MeshRight& mr, const bool selected = false) { // remap[i] keep where the position of where the i-th vertex of meshright has landed in meshleft - std::vector remap(mr.vn,-1); + std::vector remap(mr.vert.size(),-1); // first loop to find the referenced vertices and copy them preparing the remap vector FaceIteratorRight fi; @@ -127,7 +130,7 @@ static void Mesh(MeshLeft& ml, MeshRight& mr, const bool selected = false) static void Subset(MeshLeft& ml, std::vector & vfpr) { // remap[i] keep where the position of where the i-th vertex of meshright has landed in meshleft - std::vector remap(mr.vn,-1); + std::vector remap(mr.vert.size(),-1); // first loop to find the referenced vertices and copy them preparing the remap vector vector::iterator fi;