|
@@ -5,14 +5,14 @@
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
// 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
|
|
// 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/.
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
-#ifndef IGL_MOVEFV_H
|
|
|
|
-#define IGL_MOVEFV_H
|
|
|
|
|
|
+#ifndef IGL_AVERAGE_ONTO_VERTICES_H
|
|
|
|
+#define IGL_AVERAGE_ONTO_VERTICES_H
|
|
#include "igl_inline.h"
|
|
#include "igl_inline.h"
|
|
|
|
|
|
#include <Eigen/Dense>
|
|
#include <Eigen/Dense>
|
|
namespace igl
|
|
namespace igl
|
|
{
|
|
{
|
|
- // moveFV
|
|
|
|
|
|
+ // average_onto_vertices
|
|
// Move a scalar field defined on faces to vertices by averaging
|
|
// Move a scalar field defined on faces to vertices by averaging
|
|
//
|
|
//
|
|
// Input:
|
|
// Input:
|
|
@@ -22,7 +22,7 @@ namespace igl
|
|
// Output:
|
|
// Output:
|
|
// SV: scalar field defined on vertices
|
|
// SV: scalar field defined on vertices
|
|
template <typename T, typename I>
|
|
template <typename T, typename I>
|
|
- IGL_INLINE void moveFV(
|
|
|
|
|
|
+ IGL_INLINE void average_onto_vertices(
|
|
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &V,
|
|
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &V,
|
|
const Eigen::Matrix<I, Eigen::Dynamic, Eigen::Dynamic> &F,
|
|
const Eigen::Matrix<I, Eigen::Dynamic, Eigen::Dynamic> &F,
|
|
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &S,
|
|
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &S,
|
|
@@ -30,7 +30,7 @@ namespace igl
|
|
}
|
|
}
|
|
|
|
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
-# include "moveFV.cpp"
|
|
|
|
|
|
+# include "average_onto_vertices.cpp"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif
|
|
#endif
|