// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2020 Oded Stein // // 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_ORIENT_HALFEDGES_H #define IGL_ORIENT_HALFEDGES_H #include "igl_inline.h" #include namespace igl { // Orients halfedges for a triangle mesh, assigning them to a unique edge. // // Inputs: // F: input mesh connectivity // // Outputs: // E: a mapping from each halfedge to each edge // oE: the orientation of each halfedge compared to the orientation of the // actual edge. Every edge appears positively oriented exactly once. template IGL_INLINE void orient_halfedges( const Eigen::MatrixBase& F, Eigen::PlainObjectBase& E, Eigen::PlainObjectBase& oE); } #ifndef IGL_STATIC_LIBRARY # include "orient_halfedges.cpp" #endif #endif