| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2015 Qingan Zhou <[email protected]>
- // Copyright (C) 2021 Alec Jacobson <[email protected]>
- //
- // 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 <Eigen/Core>
- 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::MatrixBase<DerivedV> & V,
- const Eigen::MatrixBase<DerivedF> & F,
- const Eigen::MatrixBase<DerivedI> & I,
- IndexType & v1,
- IndexType & v2,
- Eigen::PlainObjectBase<DerivedA> & A);
- }
- }
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "outer_edge.cpp"
- #endif
- #endif
|