Browse Source

Missing normalization

Alec Jacobson 5 years ago
parent
commit
21b62c5777
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/igl/per_edge_normals.cpp

+ 2 - 0
include/igl/per_edge_normals.cpp

@@ -74,6 +74,8 @@ IGL_INLINE void igl::per_edge_normals(
       }
       }
     }
     }
   }
   }
+  // take average via normalization
+  N.rowwise().normalize();
 }
 }
 
 
 template <
 template <