From 6d1e0fca7d7e69dce62832c1d2df6f3ed58b23fd Mon Sep 17 00:00:00 2001 From: granzuglia Date: Tue, 12 Apr 2011 08:26:15 +0000 Subject: [PATCH] from f.N() = -> f.N().Import in order to avoid compile errors when the defined mesh-type presents different scalar types for vertex-coordinates and vertex-normal --- 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 dc9c3827..050af978 100644 --- a/vcg/simplex/face/component.h +++ b/vcg/simplex/face/component.h @@ -247,10 +247,10 @@ private: template -void ComputeNormal(T &f) { f.N() = vcg::Normal(f); } +void ComputeNormal(T &f) { f.N().Import(vcg::Normal(f)); } template -void ComputeNormalizedNormal(T &f) { f.N() = vcg::NormalizedNormal(f); } +void ComputeNormalizedNormal(T &f) { f.N().Import(vcg::NormalizedNormal(f)); } template class NormalAbs: public T { public: