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.
39 lines
1.3 KiB
39 lines
1.3 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_AVERAGE_FROM_EDGES_ONTO_VERTICES_H
|
|
#define IGL_AVERAGE_FROM_EDGES_ONTO_VERTICES_H
|
|
#include "igl_inline.h"
|
|
|
|
#include <Eigen/Dense>
|
|
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<typename DerivedF,typename DerivedE,typename DerivedoE,
|
|
typename DeriveduE,typename DeriveduV>
|
|
IGL_INLINE void average_from_edges_onto_vertices(
|
|
const Eigen::MatrixBase<DerivedF> &F,
|
|
const Eigen::MatrixBase<DerivedE> &E,
|
|
const Eigen::MatrixBase<DerivedoE> &oE,
|
|
const Eigen::MatrixBase<DeriveduE> &uE,
|
|
Eigen::PlainObjectBase<DeriveduV> &uV);
|
|
}
|
|
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
# include "average_from_edges_onto_vertices.cpp"
|
|
#endif
|
|
|
|
#endif
|
|
|