libigl v2.5.0
Loading...
Searching...
No Matches
per_face_normals.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_PER_FACE_NORMALS_H
9#define IGL_PER_FACE_NORMALS_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
24 template <typename DerivedV, typename DerivedF, typename DerivedZ, typename DerivedN>
26 const Eigen::MatrixBase<DerivedV>& V,
27 const Eigen::MatrixBase<DerivedF>& F,
28 const Eigen::MatrixBase<DerivedZ> & Z,
29 Eigen::PlainObjectBase<DerivedN> & N);
33 template <typename DerivedV, typename DerivedF, typename DerivedN>
35 const Eigen::MatrixBase<DerivedV>& V,
36 const Eigen::MatrixBase<DerivedF>& F,
37 Eigen::PlainObjectBase<DerivedN> & N);
41 template <typename DerivedV, typename DerivedF, typename DerivedN>
43 const Eigen::MatrixBase<DerivedV>& V,
44 const Eigen::MatrixBase<DerivedF>& F,
45 Eigen::PlainObjectBase<DerivedN> & N);
57 template <
58 typename DerivedV,
59 typename DerivedI,
60 typename DerivedC,
61 typename DerivedN,
62 typename DerivedVV,
63 typename DerivedFF,
64 typename DerivedJ>
66 const Eigen::MatrixBase<DerivedV> & V,
67 const Eigen::MatrixBase<DerivedI> & I,
68 const Eigen::MatrixBase<DerivedC> & C,
69 Eigen::PlainObjectBase<DerivedN> & N,
70 Eigen::PlainObjectBase<DerivedVV> & VV,
71 Eigen::PlainObjectBase<DerivedFF> & FF,
72 Eigen::PlainObjectBase<DerivedJ> & J);
73}
74
75#ifndef IGL_STATIC_LIBRARY
76# include "per_face_normals.cpp"
77#endif
78
79#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void per_face_normals(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedZ > &Z, Eigen::PlainObjectBase< DerivedN > &N)
Compute face normals via vertex position list, face list.
void per_face_normals_stable(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedN > &N)
This is an overloaded member function, provided for convenience. It differs from the above function o...