You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.1 KiB

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2020 Oded Stein <oded.stein@columbia.edu>
//
// 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 <Eigen/Core>
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 <typename DerivedF, typename DerivedE, typename DerivedOE>
IGL_INLINE void
orient_halfedges(
const Eigen::MatrixBase<DerivedF>& F,
Eigen::PlainObjectBase<DerivedE>& E,
Eigen::PlainObjectBase<DerivedOE>& oE);
}
#ifndef IGL_STATIC_LIBRARY
# include "orient_halfedges.cpp"
#endif
#endif