#include "ears.h" #include "on_boundary.h" #include "find.h" #include "min.h" #include template < typename DerivedF, typename Derivedear, typename Derivedear_opp> IGL_INLINE void igl::ears( const Eigen::MatrixBase & F, Eigen::PlainObjectBase & ear, Eigen::PlainObjectBase & ear_opp) { assert(F.cols() == 3 && "F should contain triangles"); Eigen::Array B; { Eigen::Array I; on_boundary(F,I,B); } find((B.rowwise().count() == 2).eval(), ear); // Why do I need this .derived()? Eigen::Array Bear = B(ear.derived(),Eigen::all); Eigen::Array M; igl::min(Bear,2,M,ear_opp); } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation // generated by autoexplicit.sh template void igl::ears, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif