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

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename DerivedF , typename SType , typename DerivedNF >
void igl::upsample (const int n_verts, const Eigen::MatrixBase< DerivedF > &F, Eigen::SparseMatrix< SType > &S, Eigen::PlainObjectBase< DerivedNF > &NF)
 Subdivide without moving vertices: 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::upsample (const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedNV > &NV, Eigen::PlainObjectBase< DerivedNF > &NF, const int number_of_subdivs=1)
 Subdivide a mesh without moving vertices: loop subdivision but odd vertices stay put and even vertices are just edge midpoints.
 
template<typename MatV , typename MatF >
void igl::upsample (MatV &V, MatF &F, const int number_of_subdivs=1)