libigl v2.5.0
Loading...
Searching...
No Matches
loop.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <Eigen/Sparse>
#include "loop.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename DerivedF , typename SType , typename DerivedNF >
void igl::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.t.
 
template<typename DerivedV , typename DerivedF , typename DerivedNV , typename DerivedNF >
void igl::loop (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedNV > &NV, Eigen::PlainObjectBase< DerivedNF > &NF, const int number_of_subdivs=1)
 Given the triangle mesh [V, F], computes number_of_subdivs steps of loop subdivision and outputs the new mesh [newV, newF].