#ifndef IGL_COLLAPSE_EDGE_WOULD_CREATE_INTERSECTIONS_H #define IGL_COLLAPSE_EDGE_WOULD_CREATE_INTERSECTIONS_H #include "igl_inline.h" #include namespace igl { /// Determine if collapse the edge `e` would create new intersections. /// /// @param[in] e index into E of edge to try to collapse. E(e,:) = [s d] or [d s] so /// that sj) is the edge of /// F(f,:) opposite the vth corner, where EI(e,0)=v. Similarly EF(e,1) " /// e=(j->i) /// @param[in,out] EI #E by 2 list of edge flap corners (see above). /// [mesh inputs] /// @param[in] tree AABB tree whose leaves correspond to the current /// (non-null) faces in (V,F) /// /// \see collapse_edge template class AABB; IGL_INLINE bool collapse_edge_would_create_intersections( const int e, const Eigen::RowVectorXd & p, const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, const Eigen::MatrixXi & E, const Eigen::VectorXi & EMAP, const Eigen::MatrixXi & EF, const Eigen::MatrixXi & EI, const igl::AABB & tree, const int inf_face_id = -1); } #ifndef IGL_STATIC_LIBRARY # include "collapse_edge_would_create_intersections.cpp" #endif #endif