From 4e3c3c110e44e2882bc18927da4e679c9a797951 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 27 Feb 2007 09:32:00 +0000 Subject: [PATCH] Added constructor to the VFadj component to comply to the allocator needs --- vcg/simplex/faceplus/component.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/faceplus/component.h b/vcg/simplex/faceplus/component.h index e4b0e9f0..62f578c5 100644 --- a/vcg/simplex/faceplus/component.h +++ b/vcg/simplex/faceplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.13 2007/02/12 19:01:23 ganovelli +added Name(std:vector& n) that fills n with the names of the attribute of the face type + Revision 1.12 2007/01/11 10:22:39 cignoni Added intialization of vertexRef to 0. @@ -403,7 +406,11 @@ public: template class VFAdj: public T { public: - + VFAdj(){ + _vfp[0]=0; + _vfp[1]=0; + _vfp[2]=0; + } typename T::FacePointer &VFp(const int j) { assert(j>=0 && j<3); return _vfp[j]; } typename T::FacePointer const VFp(const int j) const { assert(j>=0 && j<3); return _vfp[j]; } typename T::FacePointer const cVFp(const int j) const { assert(j>=0 && j<3); return _vfp[j]; }