libigl v2.5.0
Loading...
Searching...
No Matches
oriented_bounding_box.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) 2025 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
9#ifndef IGL_ORIENTED_BOUNDING_BOX_H
10#define IGL_ORIENTED_BOUNDING_BOX_H
11#include "igl_inline.h"
12#include <Eigen/Core>
13#include <Eigen/Geometry>
14#include <vector>
15namespace igl
16{
24
33 template <typename DerivedP, typename DerivedR>
35 const Eigen::MatrixBase<DerivedP>& P,
36 const int n,
37 const OrientedBoundingBoxMinimizeType minimize_type,
38 Eigen::PlainObjectBase<DerivedR> & R);
39}
40
41#ifndef IGL_STATIC_LIBRARY
42#include "oriented_bounding_box.cpp"
43#endif
44#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
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