// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2022 Alec Jacobson // // 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/. #include "moments.h" template < typename DerivedV, typename DerivedF, typename Derivedm0, typename Derivedm1, typename Derivedm2> IGL_INLINE void igl::moments( const Eigen::MatrixBase& V, const Eigen::MatrixBase& F, Derivedm0 & m0, Eigen::PlainObjectBase& m1, Eigen::PlainObjectBase& m2) { typedef typename Derivedm2::Scalar Scalar; m0 = 0; m1 << 0,0,0; Scalar _xx=0; Scalar _yy=0; Scalar _zz=0; Scalar _yx=0; Scalar _zx=0; Scalar _zy=0; for(int f = 0;f, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); template void igl::moments, Eigen::Matrix, double, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, double&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif