libigl v2.5.0
Loading...
Searching...
No Matches
vertex_triangle_adjacency.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//
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#ifndef IGL_VERTEX_TRIANGLE_ADJACENCY_H
9#define IGL_VERTEX_TRIANGLE_ADJACENCY_H
10#include "igl_inline.h"
11
12#include <Eigen/Dense>
13#include <vector>
14
15namespace igl
16{
31 template <typename DerivedF, typename VFType, typename VFiType>
33 const typename DerivedF::Scalar n,
34 const Eigen::MatrixBase<DerivedF>& F,
35 std::vector<std::vector<VFType> >& VF,
36 std::vector<std::vector<VFiType> >& VFi);
38 template <typename DerivedV, typename DerivedF, typename IndexType>
40 const Eigen::MatrixBase<DerivedV>& V,
41 const Eigen::MatrixBase<DerivedF>& F,
42 std::vector<std::vector<IndexType> >& VF,
43 std::vector<std::vector<IndexType> >& VFi);
54 template <
55 typename DerivedF,
56 typename DerivedVF,
57 typename DerivedNI>
59 const Eigen::MatrixBase<DerivedF> & F,
60 const int n,
61 Eigen::PlainObjectBase<DerivedVF> & VF,
62 Eigen::PlainObjectBase<DerivedNI> & NI);
63}
64
65#ifndef IGL_STATIC_LIBRARY
66# include "vertex_triangle_adjacency.cpp"
67#endif
68
69#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void vertex_triangle_adjacency(const typename DerivedF::Scalar n, const Eigen::MatrixBase< DerivedF > &F, std::vector< std::vector< VFType > > &VF, std::vector< std::vector< VFiType > > &VFi)
vertex_face_adjacency constructs the vertex-face topology of a given mesh (V,F)