#include "edge_crossings.h" #include "list_to_matrix.h" template < typename DeriveduE, typename DerivedS, typename DerivedT> void igl::edge_crossings( const Eigen::MatrixBase & uE, const Eigen::MatrixBase & S, const typename DerivedS::Scalar val, std::unordered_map & uE2I, Eigen::PlainObjectBase & T) { using Scalar = typename DerivedS::Scalar; { std::vector vT; for(int u = 0;u= 0) { continue; } // find crossing point const Scalar t = (val-Si)/(Sj-Si); uE2I[u] = vT.size(); vT.emplace_back(t); } igl::list_to_matrix(vT,T); } } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation // generated by autoexplicit.sh template void igl::edge_crossings, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, Eigen::Matrix::Scalar, std::unordered_map, std::equal_to, std::allocator > >&, Eigen::PlainObjectBase >&); #endif