libigl v2.5.0
Loading...
Searching...
No Matches
lscm.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 Daniele Panozzo <daniele.panozzo@gmail.com>
4// 2015 Alec Jacobson
5//
6// This Source Code Form is subject to the terms of the Mozilla Public License
7// v. 2.0. If a copy of the MPL was not distributed with this file, You can
8// obtain one at http://mozilla.org/MPL/2.0/.
9#ifndef IGL_LSCM_H
10#define IGL_LSCM_H
11#include "igl_inline.h"
12
13#include <Eigen/Dense>
14#include <Eigen/Sparse>
15
16namespace igl
17{
35 template <
36 typename DerivedV,
37 typename DerivedF,
38 typename Derivedb,
39 typename Derivedbc,
40 typename DerivedV_uv,
41 typename QScalar>
43 const Eigen::MatrixBase<DerivedV> & V,
44 const Eigen::MatrixBase<DerivedF> & F,
45 const Eigen::MatrixBase<Derivedb> & b,
46 const Eigen::MatrixBase<Derivedbc> & bc,
47 Eigen::PlainObjectBase<DerivedV_uv> & V_uv,
48 Eigen::SparseMatrix<QScalar> & Q);
50 template <
51 typename DerivedV,
52 typename DerivedF,
53 typename Derivedb,
54 typename Derivedbc,
55 typename DerivedV_uv>
57 const Eigen::MatrixBase<DerivedV> & V,
58 const Eigen::MatrixBase<DerivedF> & F,
59 const Eigen::MatrixBase<Derivedb> & b,
60 const Eigen::MatrixBase<Derivedbc> & bc,
61 Eigen::PlainObjectBase<DerivedV_uv> & V_uv);
67 template <
68 typename DerivedV,
69 typename DerivedF,
70 typename DerivedV_uv>
72 const Eigen::MatrixBase<DerivedV> & V,
73 const Eigen::MatrixBase<DerivedF> & F,
74 Eigen::PlainObjectBase<DerivedV_uv> & V_uv);
75}
76
77#ifndef IGL_STATIC_LIBRARY
78# include "lscm.cpp"
79#endif
80
81#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool lscm(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< Derivedb > &b, const Eigen::MatrixBase< Derivedbc > &bc, Eigen::PlainObjectBase< DerivedV_uv > &V_uv, Eigen::SparseMatrix< QScalar > &Q)
Compute a Least-squares conformal map parametrization (equivalently derived in "Intrinsic Parameteriz...