libigl v2.5.0
Loading...
Searching...
No Matches
per_corner_normals.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <vector>
#include "per_corner_normals.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename DerivedV , typename DerivedF , typename DerivedCN >
void igl::per_corner_normals (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const typename DerivedV::Scalar corner_threshold_degrees, Eigen::PlainObjectBase< DerivedCN > &CN)
 Compute per corner normals for a triangle mesh by computing the area-weighted average of normals at incident faces whose normals deviate less than the provided threshold.
 
template<typename DerivedV , typename DerivedF , typename DerivedVF , typename DerivedNI , typename DerivedCN >
void igl::per_corner_normals (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const typename DerivedV::Scalar corner_threshold_degrees, const Eigen::MatrixBase< DerivedVF > &VF, const Eigen::MatrixBase< DerivedNI > &NI, Eigen::PlainObjectBase< DerivedCN > &CN)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename DerivedV , typename DerivedF , typename DerivedCI , typename DerivedCC , typename DerivedCN >
void igl::per_corner_normals (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedCI > &CI, const Eigen::MatrixBase< DerivedCC > &CC, Eigen::PlainObjectBase< DerivedCN > &CN)
 
template<typename DerivedNV , typename DerivedNF , typename DerivedCN >
void igl::per_corner_normals (const Eigen::MatrixBase< DerivedNV > &NV, const Eigen::MatrixBase< DerivedNF > &NF, Eigen::PlainObjectBase< DerivedCN > &CN)
 Given indexed normals (e.g., read from a .obj file), explode into per-corner normals (e.g., as expected by igl::opengl::ViewerData)
 
template<typename DerivedV , typename DerivedI , typename DerivedC , typename DerivedN , typename DerivedVV , typename DerivedFF , typename DerivedJ , typename DerivedNN >
void igl::per_corner_normals (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedI > &I, const Eigen::MatrixBase< DerivedC > &C, const typename DerivedV::Scalar corner_threshold_degrees, Eigen::PlainObjectBase< DerivedN > &N, Eigen::PlainObjectBase< DerivedVV > &VV, Eigen::PlainObjectBase< DerivedFF > &FF, Eigen::PlainObjectBase< DerivedJ > &J, Eigen::PlainObjectBase< DerivedNN > &NN)
 Per-corner normals for a polygon mesh.