|
@@ -11,7 +11,7 @@
|
|
#include <vector>
|
|
#include <vector>
|
|
|
|
|
|
template <typename AScalar, typename DerivedC, typename Derivedcounts>
|
|
template <typename AScalar, typename DerivedC, typename Derivedcounts>
|
|
-IGL_INLINE void igl::components(
|
|
|
|
|
|
+IGL_INLINE void igl::vertex_components(
|
|
const Eigen::SparseMatrix<AScalar> & A,
|
|
const Eigen::SparseMatrix<AScalar> & A,
|
|
Eigen::PlainObjectBase<DerivedC> & C,
|
|
Eigen::PlainObjectBase<DerivedC> & C,
|
|
Eigen::PlainObjectBase<Derivedcounts> & counts)
|
|
Eigen::PlainObjectBase<Derivedcounts> & counts)
|
|
@@ -68,31 +68,31 @@ IGL_INLINE void igl::components(
|
|
}
|
|
}
|
|
|
|
|
|
template <typename AScalar, typename DerivedC>
|
|
template <typename AScalar, typename DerivedC>
|
|
-IGL_INLINE void igl::components(
|
|
|
|
|
|
+IGL_INLINE void igl::vertex_components(
|
|
const Eigen::SparseMatrix<AScalar> & A,
|
|
const Eigen::SparseMatrix<AScalar> & A,
|
|
Eigen::PlainObjectBase<DerivedC> & C)
|
|
Eigen::PlainObjectBase<DerivedC> & C)
|
|
{
|
|
{
|
|
Eigen::VectorXi counts;
|
|
Eigen::VectorXi counts;
|
|
- return components(A,C,counts);
|
|
|
|
|
|
+ return vertex_components(A,C,counts);
|
|
}
|
|
}
|
|
|
|
|
|
template <typename DerivedF, typename DerivedC>
|
|
template <typename DerivedF, typename DerivedC>
|
|
-IGL_INLINE void igl::components(
|
|
|
|
|
|
+IGL_INLINE void igl::vertex_components(
|
|
const Eigen::MatrixBase<DerivedF> & F,
|
|
const Eigen::MatrixBase<DerivedF> & F,
|
|
Eigen::PlainObjectBase<DerivedC> & C)
|
|
Eigen::PlainObjectBase<DerivedC> & C)
|
|
{
|
|
{
|
|
Eigen::SparseMatrix<typename DerivedC::Scalar> A;
|
|
Eigen::SparseMatrix<typename DerivedC::Scalar> A;
|
|
adjacency_matrix(F,A);
|
|
adjacency_matrix(F,A);
|
|
- return components(A,C);
|
|
|
|
|
|
+ return vertex_components(A,C);
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef IGL_STATIC_LIBRARY
|
|
#ifdef IGL_STATIC_LIBRARY
|
|
// Explicit template instantiation
|
|
// Explicit template instantiation
|
|
// generated by autoexplicit.sh
|
|
// generated by autoexplicit.sh
|
|
-template void igl::components<bool, Eigen::Array<int, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<bool, 0, int> const&, Eigen::PlainObjectBase<Eigen::Array<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
-template void igl::components<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
-template void igl::components<int, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<int, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
-template void igl::components<int, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::SparseMatrix<int, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
|
|
-template void igl::components<double, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
|
|
-template void igl::components<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
|
|
|
|
+template void igl::vertex_components<bool, Eigen::Array<int, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<bool, 0, int> const&, Eigen::PlainObjectBase<Eigen::Array<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
+template void igl::vertex_components<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
+template void igl::vertex_components<int, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<int, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
|
|
|
+template void igl::vertex_components<int, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::SparseMatrix<int, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
|
|
+template void igl::vertex_components<double, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
|
|
+template void igl::vertex_components<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
#endif
|
|
#endif
|