#ifndef IGL_MANIFOLD_PATCHES_H #define IGL_MANIFOLD_PATCHES_H #include #include #include namespace igl { // Compute connected components of facets connected by manifold edges. // // Known bugs: This will detect a moebius strip as a single patch (manifold, // non-orientable) and also non-manfiold, yet orientable patches. // // Q: Does this find exactly (manifold || orientable) patches? // // Inputs: // F #F by simplex-size list of facets // Outputs: // C #F list of component ids // A #F by #F adjacency matrix // template IGL_INLINE void manifold_patches( const Eigen::PlainObjectBase & F, Eigen::PlainObjectBase & C, Eigen::SparseMatrix & A); }; #ifdef IGL_HEADER_ONLY # include "manifold_patches.cpp" #endif #endif