From eeacaeff3bd4f35fc2433c722ad863c8cbcd9673 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Tue, 17 Mar 2009 16:40:36 +0000 Subject: [PATCH] fixed WN and WT assignments (indices used). --- vcg/simplex/face/component.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/face/component.h b/vcg/simplex/face/component.h index 27be9156..b84bfde5 100644 --- a/vcg/simplex/face/component.h +++ b/vcg/simplex/face/component.h @@ -257,7 +257,7 @@ public: NormalType &WN(const int j) { return _wnorm[j]; } const NormalType cWN(const int j) const { return _wnorm[j]; } template - void ImportLocal(const LeftF & leftF){ WN() = leftF.cWN(); T::ImportLocal(leftF);} + void ImportLocal(const LeftF & leftF){ for (int i=0; i<3; ++i) { WN(i) = leftF.cWN(i); } T::ImportLocal(leftF);} inline void Alloc(const int & ns){T::Alloc(ns);} inline void Dealloc(){T::Dealloc();} static bool HasWedgeNormal() { return true; } @@ -303,7 +303,7 @@ public: TexCoordType &WT(const int i) { return _wt[i]; } TexCoordType const &cWT(const int i) const { return _wt[i]; } template - void ImportLocal(const LeftF & leftF){ WT() = leftF.cWT();T::ImportLocal(leftF);} + void ImportLocal(const LeftF & leftF){ for (int i=0; i<3; ++i) { WT(i) = leftF.cWT(i); } T::ImportLocal(leftF);} inline void Alloc(const int & ns){T::Alloc(ns);} inline void Dealloc(){T::Dealloc();} static bool HasWedgeTexCoord() { return true; }