// 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_EDGE_MIDPOINTS_H #define IGL_EDGE_MIDPOINTS_H #include "igl_inline.h" #include namespace igl { // Computes the midpoints of edges in a triangle mesh. // // Input: // V, F: triangle mesh // E, oE: mapping from halfedges to edges and orientation as generated by // orient_halfedges // // Output: // mps: edge midpoints, one per edge in E template IGL_INLINE void edge_midpoints( const Eigen::MatrixBase &V, const Eigen::MatrixBase &F, const Eigen::MatrixBase &E, const Eigen::MatrixBase &oE, Eigen::PlainObjectBase &mps); } #ifndef IGL_STATIC_LIBRARY # include "edge_midpoints.cpp" #endif #endif