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

This commit is contained in:
granzuglia 2011-04-12 08:26:15 +00:00
parent a4af30479c
commit 6d1e0fca7d
1 changed files with 2 additions and 2 deletions

View File

@ -247,10 +247,10 @@ private:
template <class T>
void ComputeNormal(T &f) { f.N() = vcg::Normal<T>(f); }
void ComputeNormal(T &f) { f.N().Import(vcg::Normal<T>(f)); }
template <class T>
void ComputeNormalizedNormal(T &f) { f.N() = vcg::NormalizedNormal<T>(f); }
void ComputeNormalizedNormal(T &f) { f.N().Import(vcg::NormalizedNormal<T>(f)); }
template <class A, class T> class NormalAbs: public T {
public: