8#ifndef IGL_PER_VERTEX_NORMALS_H 
    9#define IGL_PER_VERTEX_NORMALS_H 
   42    const Eigen::MatrixBase<DerivedV>& V,
 
   43    const Eigen::MatrixBase<DerivedF>& F,
 
   45    Eigen::PlainObjectBase<DerivedN> & N);
 
   52    const Eigen::MatrixBase<DerivedV>& V,
 
   53    const Eigen::MatrixBase<DerivedF>& F,
 
   54    Eigen::PlainObjectBase<DerivedN> & N);
 
   58  template <
typename DerivedV, 
typename DerivedF, 
typename DerivedFN, 
typename DerivedN>
 
   60    const Eigen::MatrixBase<DerivedV>& V,
 
   61    const Eigen::MatrixBase<DerivedF>& F,
 
   63    const Eigen::MatrixBase<DerivedFN>& FN,
 
   64    Eigen::PlainObjectBase<DerivedN> & N);
 
   72    const Eigen::MatrixBase<DerivedV>& V,
 
   73    const Eigen::MatrixBase<DerivedF>& F,
 
   74    const Eigen::MatrixBase<DerivedFN>& FN,
 
   75    Eigen::PlainObjectBase<DerivedN> & N);
 
   78#ifndef IGL_STATIC_LIBRARY 
   79#  include "per_vertex_normals.cpp" 
#define IGL_INLINE
Definition igl_inline.h:15
 
void per_vertex_normals(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const igl::PerVertexNormalsWeightingType weighting, Eigen::PlainObjectBase< DerivedN > &N)
Compute vertex normals via vertex position list, face list.
 
PerVertexNormalsWeightingType
Weighting schemes for computing per-vertex normals.
Definition per_vertex_normals.h:19
 
@ PER_VERTEX_NORMALS_WEIGHTING_TYPE_UNIFORM
Incident face normals have uniform influence on vertex normal.
Definition per_vertex_normals.h:21
 
@ PER_VERTEX_NORMALS_WEIGHTING_TYPE_ANGLE
Incident face normals are averaged weighted by incident angle of vertex.
Definition per_vertex_normals.h:25
 
@ PER_VERTEX_NORMALS_WEIGHTING_TYPE_AREA
Incident face normals are averaged weighted by area.
Definition per_vertex_normals.h:23
 
@ PER_VERTEX_NORMALS_WEIGHTING_TYPE_DEFAULT
Area weights.
Definition per_vertex_normals.h:27
 
@ NUM_PER_VERTEX_NORMALS_WEIGHTING_TYPE
Total number of weighting types.
Definition per_vertex_normals.h:29