libigl v2.5.0
Loading...
Searching...
No Matches
fit_rotations.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_FIT_ROTATIONS_H
9#define IGL_FIT_ROTATIONS_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12
13namespace igl
14{
23 template <typename DerivedS, typename DerivedD>
25 const Eigen::PlainObjectBase<DerivedS> & S,
26 const bool single_precision,
27 Eigen::PlainObjectBase<DerivedD> & R);
28#ifdef __SSE__
32 IGL_INLINE void fit_rotations_SSE( const Eigen::MatrixXf & S, Eigen::MatrixXf & R);
36 IGL_INLINE void fit_rotations_SSE( const Eigen::MatrixXd & S, Eigen::MatrixXd & R);
37#endif
38#ifdef __AVX__
42 IGL_INLINE void fit_rotations_AVX( const Eigen::MatrixXf & S, Eigen::MatrixXf & R);
43#endif
54 template <typename DerivedS, typename DerivedD>
56 const Eigen::PlainObjectBase<DerivedS> & S,
57 Eigen::PlainObjectBase<DerivedD> & R);
58}
59
60#ifndef IGL_STATIC_LIBRARY
61# include "fit_rotations.cpp"
62#endif
63
64#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void fit_rotations(const Eigen::PlainObjectBase< DerivedS > &S, const bool single_precision, Eigen::PlainObjectBase< DerivedD > &R)
Given an input mesh and new positions find rotations for every covariance matrix in a stack of covari...
void fit_rotations_planar(const Eigen::PlainObjectBase< DerivedS > &S, Eigen::PlainObjectBase< DerivedD > &R)
Given an input mesh and new positions find 2D rotations for every vertex that best maps its one ring ...