// 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_AVERAGE_FROM_EDGES_ONTO_VERTICES_H #define IGL_AVERAGE_FROM_EDGES_ONTO_VERTICES_H #include "igl_inline.h" #include namespace igl { // Move a scalar field defined on edges to vertices by averaging // // Input: // F: triangle mesh connectivity // E, oE: mapping from halfedges to edges and orientation as generated by // orient_halfedges // uE: scalar field defined on edges, one per edge // // Output: // uV: scalar field defined on vertices template IGL_INLINE void average_from_edges_onto_vertices( const Eigen::MatrixBase &F, const Eigen::MatrixBase &E, const Eigen::MatrixBase &oE, const Eigen::MatrixBase &uE, Eigen::PlainObjectBase &uV); } #ifndef IGL_STATIC_LIBRARY # include "average_from_edges_onto_vertices.cpp" #endif #endif