Initial commit

This commit is contained in:
github-classroom[bot] 2024-10-24 10:26:51 +00:00 committed by GitHub
commit 5985bb8445
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 33142 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#ifndef PER_FACE_NORMALS_H
#define PER_FACE_NORMALS_H
#include <Eigen/Core>
// Compute per-face normals for a triangle mesh
//
// Inputs:
// V #V by 3 list of vertex positions
// F #F by 3 list of mesh triangle indices into V
// Outputs:
// N #F by 3 list of per-face unit normal vectors
void per_face_normals(
const Eigen::MatrixXd & V,
const Eigen::MatrixXi & F,
Eigen::MatrixXd & N);
#endif