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.

38 lines
1.2 KiB

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2018 Zhongshi Jiang <jiangzs@nyu.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_MAPPING_ENERGY_WITH_JACOBIANS_H
#define IGL_MAPPING_ENERGY_WITH_JACOBIANS_H
#include "igl_inline.h"
#include "MappingEnergyType.h"
#include <Eigen/Dense>
namespace igl
{
/// Compute the rotation-invariant energy of a mapping (represented in Jacobians and areas)
///
/// @param[in] Ji #F by 4 (9 if 3D) entries of jacobians
/// @param[in] areas: #F by 1 face areas
/// @param[in] slim_energy energy type as in igl::MappingEnergyType
/// @param[in] exp_factor see igl::MappingEnergyType
/// @return energy value
///
///
/// \see MappingEnergyType
IGL_INLINE double mapping_energy_with_jacobians(
const Eigen::MatrixXd &Ji,
const Eigen::VectorXd &areas,
igl::MappingEnergyType slim_energy,
double exp_factor);
}
#ifndef IGL_STATIC_LIBRARY
# include "mapping_energy_with_jacobians.cpp"
#endif
#endif