libigl v2.5.0
Loading...
Searching...
No Matches
barycentric_coordinates.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) 2014 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_BARYCENTRIC_COORDINATES_H
9#define IGL_BARYCENTRIC_COORDINATES_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
23 template <
24 typename DerivedP,
25 typename DerivedA,
26 typename DerivedB,
27 typename DerivedC,
28 typename DerivedD,
29 typename DerivedL>
31 const Eigen::MatrixBase<DerivedP> & P,
32 const Eigen::MatrixBase<DerivedA> & A,
33 const Eigen::MatrixBase<DerivedB> & B,
34 const Eigen::MatrixBase<DerivedC> & C,
35 const Eigen::MatrixBase<DerivedD> & D,
36 Eigen::PlainObjectBase<DerivedL> & L);
45 template <
46 typename DerivedP,
47 typename DerivedA,
48 typename DerivedB,
49 typename DerivedC,
50 typename DerivedL>
52 const Eigen::MatrixBase<DerivedP> & P,
53 const Eigen::MatrixBase<DerivedA> & A,
54 const Eigen::MatrixBase<DerivedB> & B,
55 const Eigen::MatrixBase<DerivedC> & C,
56 Eigen::PlainObjectBase<DerivedL> & L);
57
58}
59
60#ifndef IGL_STATIC_LIBRARY
61# include "barycentric_coordinates.cpp"
62#endif
63
64#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void barycentric_coordinates(const Eigen::MatrixBase< DerivedP > &P, const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, const Eigen::MatrixBase< DerivedC > &C, const Eigen::MatrixBase< DerivedD > &D, Eigen::PlainObjectBase< DerivedL > &L)
Compute barycentric coordinates of each point in a corresponding tetrahedron.