16 template<
typename Kernel>
20 using Point_3 =
typename Kernel::Point_3;
21 using Vector_3 =
typename Kernel::Vector_3;
22 using FT =
typename Kernel::FT;
28 void build(
const std::vector<FT>& positions);
33 template<
typename ForwardIterator,
typename VPMap>
34 void build(ForwardIterator first, ForwardIterator beyond, VPMap vpmap);
39 template<
typename Derived>
40 void build(
const Eigen::MatrixBase<Derived>& v);
53 Vector_3
axis(
int n)
const;
63 template<
typename Derived>
64 void _build(
const Eigen::MatrixBase<Derived>& points);
68 std::array<Vector_3, 3> _directions;
74 #include "src/OBB.cpp" Vector_3 axis(int n) const
Return the unit-length axis.
Definition: OBB.cpp:61
Point_3 center() const
Return the center of the box.
Definition: OBB.cpp:55
void build(const std::vector< FT > &positions)
Build OBB for a set of raw positions.
Definition: OBB.cpp:12
FT length(int n) const
Return the length of an axis.
Definition: OBB.cpp:70
Object oriented bounding box.
Definition: OBB.h:17