libigl v2.5.0
Loading...
Searching...
No Matches
vertex_components.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) 2015 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#ifndef IGL_COMPONENTS_H
9#define IGL_COMPONENTS_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12#include <Eigen/Sparse>
13namespace igl
14{
24 template <typename DerivedA, typename DerivedC, typename Derivedcounts>
26 const Eigen::SparseCompressedBase<DerivedA> & A,
27 Eigen::PlainObjectBase<DerivedC> & C,
28 Eigen::PlainObjectBase<Derivedcounts> & counts);
30 template <typename DerivedA, typename DerivedC>
32 const Eigen::SparseCompressedBase<DerivedA> & A,
33 Eigen::PlainObjectBase<DerivedC> & C);
42 template <typename DerivedF, typename DerivedC>
44 const Eigen::MatrixBase<DerivedF> & F,
45 Eigen::PlainObjectBase<DerivedC> & C);
46
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "vertex_components.cpp"
51#endif
52
53#endif
54
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void vertex_components(const Eigen::SparseCompressedBase< DerivedA > &A, Eigen::PlainObjectBase< DerivedC > &C, Eigen::PlainObjectBase< Derivedcounts > &counts)
Compute connected components of a graph represented by an adjacency matrix.