libigl v2.5.0
Loading...
Searching...
No Matches
remove_unreferenced.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//
9// remove_unreferenced.h
10// Preview3D
11//
12// Created by Daniele Panozzo on 17/11/11.
13
14#ifndef IGL_REMOVE_UNREFERENCED_H
15#define IGL_REMOVE_UNREFERENCED_H
16#include "igl_inline.h"
17
18#include <Eigen/Core>
19namespace igl
20{
30 template <
31 typename DerivedV,
32 typename DerivedF,
33 typename DerivedNV,
34 typename DerivedNF,
35 typename DerivedI,
36 typename DerivedJ>
38 const Eigen::MatrixBase<DerivedV> &V,
39 const Eigen::MatrixBase<DerivedF> &F,
40 Eigen::PlainObjectBase<DerivedNV> &NV,
41 Eigen::PlainObjectBase<DerivedNF> &NF,
42 Eigen::PlainObjectBase<DerivedI> &I,
43 Eigen::PlainObjectBase<DerivedJ> &J);
45 template <
46 typename DerivedV,
47 typename DerivedF,
48 typename DerivedNV,
49 typename DerivedNF,
50 typename DerivedI>
52 const Eigen::MatrixBase<DerivedV> &V,
53 const Eigen::MatrixBase<DerivedF> &F,
54 Eigen::PlainObjectBase<DerivedNV> &NV,
55 Eigen::PlainObjectBase<DerivedNF> &NF,
56 Eigen::PlainObjectBase<DerivedI> &I);
59 template <
60 typename DerivedF,
61 typename DerivedI,
62 typename DerivedJ>
64 const size_t n,
65 const Eigen::MatrixBase<DerivedF> &F,
66 Eigen::PlainObjectBase<DerivedI> &I,
67 Eigen::PlainObjectBase<DerivedJ> &J);
68
69}
70
71#ifndef IGL_STATIC_LIBRARY
72# include "remove_unreferenced.cpp"
73#endif
74
75#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void remove_unreferenced(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedNV > &NV, Eigen::PlainObjectBase< DerivedNF > &NF, Eigen::PlainObjectBase< DerivedI > &I, Eigen::PlainObjectBase< DerivedJ > &J)
Remove unreferenced vertices from V, updating F accordingly.