libigl v2.5.0
Loading...
Searching...
No Matches
cell_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) 2016 Qingnan Zhou <qnzhou@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#ifndef IGL_COPYLEFT_CGAL_CELL_ADJACENCY_H
10#define IGL_COPYLEFT_CGAL_CELL_ADJACENCY_H
11#include "../../igl_inline.h"
12#include <Eigen/Core>
13#include <set>
14#include <tuple>
15#include <vector>
16
17namespace igl
18{
19 namespace copyleft
20 {
21 namespace cgal
22 {
33 template < typename DerivedC >
35 const Eigen::PlainObjectBase<DerivedC>& per_patch_cells,
36 const size_t num_cells,
37 std::vector<std::set<std::tuple<typename DerivedC::Scalar, bool, size_t> > >&
39 }
40 }
41}
42
43#ifndef IGL_STATIC_LIBRARY
44# include "cell_adjacency.cpp"
45#endif
46#endif
#define IGL_INLINE
Definition igl_inline.h:15
void cell_adjacency(const Eigen::PlainObjectBase< DerivedC > &per_patch_cells, const size_t num_cells, std::vector< std::set< std::tuple< typename DerivedC::Scalar, bool, size_t > > > &adjacency_list)
Determine adjacency of cells.
Definition AABB.h:17
void adjacency_list(const Eigen::MatrixBase< Index > &F, std::vector< std::vector< IndexVector > > &A, bool sorted=false)
Constructs the graph adjacency list of a given mesh (V,F)