libigl v2.5.0
Loading...
Searching...
No Matches
loop.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) 2016 Oded Stein <oded.stein@columbia.edu>
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
9#ifndef IGL_LOOP_H
10#define IGL_LOOP_H
11
12#include "igl_inline.h"
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16namespace igl
17{
26 template <
27 typename DerivedF,
28 typename SType,
29 typename DerivedNF>
31 const int n_verts,
32 const Eigen::MatrixBase<DerivedF> & F,
33 Eigen::SparseMatrix<SType>& S,
34 Eigen::PlainObjectBase<DerivedNF> & NF);
42 template <
43 typename DerivedV,
44 typename DerivedF,
45 typename DerivedNV,
46 typename DerivedNF>
48 const Eigen::MatrixBase<DerivedV>& V,
49 const Eigen::MatrixBase<DerivedF>& F,
50 Eigen::PlainObjectBase<DerivedNV>& NV,
51 Eigen::PlainObjectBase<DerivedNF>& NF,
52 const int number_of_subdivs = 1);
53}
54
55#ifndef IGL_STATIC_LIBRARY
56# include "loop.cpp"
57#endif
58
59#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void loop(const int n_verts, const Eigen::MatrixBase< DerivedF > &F, Eigen::SparseMatrix< SType > &S, Eigen::PlainObjectBase< DerivedNF > &NF)
Given the triangle mesh [V, F], where n_verts = V.rows(), computes newV and a sparse matrix S s....