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:
parent
a4af30479c
commit
6d1e0fca7d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue