libigl v2.5.0
Loading...
Searching...
No Matches
harmonic.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_HARMONIC_H
9#define IGL_HARMONIC_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12#include <Eigen/Sparse>
13namespace igl
14{
24 template <
25 typename DerivedV,
26 typename DerivedF,
27 typename Derivedb,
28 typename Derivedbc,
29 typename DerivedW>
31 const Eigen::MatrixBase<DerivedV> & V,
32 const Eigen::MatrixBase<DerivedF> & F,
33 const Eigen::MatrixBase<Derivedb> & b,
34 const Eigen::MatrixBase<Derivedbc> & bc,
35 const int k,
36 Eigen::PlainObjectBase<DerivedW> & W);
39 template <
40 typename DerivedF,
41 typename Derivedb,
42 typename Derivedbc,
43 typename DerivedW>
45 const Eigen::MatrixBase<DerivedF> & F,
46 const Eigen::MatrixBase<Derivedb> & b,
47 const Eigen::MatrixBase<Derivedbc> & bc,
48 const int k,
49 Eigen::PlainObjectBase<DerivedW> & W);
55 template <
56 typename DerivedL,
57 typename DerivedM,
58 typename Derivedb,
59 typename Derivedbc,
60 typename DerivedW>
62 const Eigen::SparseCompressedBase<DerivedL> & L,
63 const Eigen::SparseCompressedBase<DerivedM> & M,
64 const Eigen::MatrixBase<Derivedb> & b,
65 const Eigen::MatrixBase<Derivedbc> & bc,
66 const int k,
67 Eigen::PlainObjectBase<DerivedW> & W);
75 template <
76 typename DerivedL,
77 typename DerivedM,
78 typename DerivedQ>
80 const Eigen::SparseCompressedBase<DerivedL> & L,
81 const Eigen::SparseCompressedBase<DerivedM> & M,
82 const int k,
83 DerivedQ & Q);
87 template <
88 typename DerivedV,
89 typename DerivedF,
90 typename DerivedQ>
92 const Eigen::MatrixBase<DerivedV> & V,
93 const Eigen::MatrixBase<DerivedF> & F,
94 const int k,
95 DerivedQ & Q);
96};
97
98#ifndef IGL_STATIC_LIBRARY
99#include "harmonic.cpp"
100#endif
101#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool harmonic(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< Derivedb > &b, const Eigen::MatrixBase< Derivedbc > &bc, const int k, Eigen::PlainObjectBase< DerivedW > &W)
Compute k-harmonic weight functions "coordinates".