// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Qingan Zhou // Copyright (C) 2021 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #ifndef IGL_COPYLEFT_CGAL_OUTER_EDGE_H #define IGL_COPYLEFT_CGAL_OUTER_EDGE_H #include "../../igl_inline.h" #include namespace igl { namespace copyleft { namespace cgal { /// Find an edge that is reachable from infinity without crossing any faces. /// Such edge is called "outer edge." /// /// \pre The input mesh must have all self-intersection resolved /// and no duplicated vertices. The correctness of the output depends on /// the fact that there is no edge overlap. See /// cgal::remesh_self_intersections.h for how to obtain such input. /// /// @param[in] V #V by 3 list of vertex positions /// @param[in] F #F by 3 list of triangle indices into V /// @param[in] I #I list of facets to consider /// @param[out] v1 index of the first end point of outer edge /// @param[out] v2 index of the second end point of outer edge /// @param[out] A #A list of facets incident to the outer edge template< typename DerivedV, typename DerivedF, typename DerivedI, typename IndexType, typename DerivedA > IGL_INLINE void outer_edge( const Eigen::PlainObjectBase & V, const Eigen::PlainObjectBase & F, const Eigen::PlainObjectBase & I, IndexType & v1, IndexType & v2, Eigen::PlainObjectBase & A); } } } #ifndef IGL_STATIC_LIBRARY # include "outer_edge.cpp" #endif #endif