9#ifndef IGL_ORIENTED_BOUNDING_BOX_H
10#define IGL_ORIENTED_BOUNDING_BOX_H
13#include <Eigen/Geometry>
33 template <
typename DerivedP,
typename DerivedR>
35 const Eigen::MatrixBase<DerivedP>& P,
38 Eigen::PlainObjectBase<DerivedR> & R);
41#ifndef IGL_STATIC_LIBRARY
42#include "oriented_bounding_box.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
void oriented_bounding_box(const Eigen::MatrixBase< DerivedP > &P, const int n, const OrientedBoundingBoxMinimizeType minimize_type, Eigen::PlainObjectBase< DerivedR > &R)
Given a set of points compute the rotation transformation of them such that their axis-aligned boundi...
OrientedBoundingBoxMinimizeType
Definition oriented_bounding_box.h:18
@ ORIENTED_BOUNDING_BOX_MINIMIZE_SURFACE_AREA
Definition oriented_bounding_box.h:20
@ ORIENTED_BOUNDING_BOX_MINIMIZE_VOLUME
Definition oriented_bounding_box.h:19
@ NUM_ORIENTED_BOUNDING_BOX_MINIMIZE_TYPES
Definition oriented_bounding_box.h:22
@ ORIENTED_BOUNDING_BOX_MINIMIZE_DIAGONAL_LENGTH
Definition oriented_bounding_box.h:21