Euclid
Geometry Processing and Shape Analysis in C++
Euclid::AABB< Kernel > Class Template Reference

Axis Aligned Bounding Box. More...

#include <AABB.h>

Public Types

using Point_3 = typename Kernel::Point_3
 
using FT = typename Kernel::FT
 

Public Member Functions

 AABB (const std::vector< FT > &positions)
 Build AABB for a set of positions.
 
 AABB (const std::vector< Point_3 > &points)
 Build AABB for a set of points.
 
template<typename ForwardIterator , typename VPMap >
 AABB (ForwardIterator first, ForwardIterator beyond, VPMap vpmap)
 Build AABB for a range of points.
 
Point_3 center () const
 Return the center of the box.
 
FT xmin () const
 Return x min.
 
FT xmax () const
 Return x max.
 
FT xlen () const
 Return the length of edge along the x axis.
 
FT ymin () const
 Return y min.
 
FT ymax () const
 Return y max.
 
FT ylen () const
 Return the length of edge along the y axis.
 
FT zmin () const
 Return z min.
 
FT zmax () const
 Return z max.
 
FT zlen () const
 Return the length of edge along the z axis.
 
Point_3 point (bool xlarge, bool ylarge, bool zlarge) const
 Return the corner point of the box. More...
 

Detailed Description

template<typename Kernel>
class Euclid::AABB< Kernel >

This class uses right-handed coordinate system.

Member Function Documentation

template<typename Kernel >
AABB< Kernel >::Point_3 Euclid::AABB< Kernel >::point ( bool  xlarge,
bool  ylarge,
bool  zlarge 
) const
Parameters
xlargeSet to true for the larger x-corner, to false otherwise.
ylargeSet to true for the larger y-corner, to false otherwise.
zlargeSet to true for the larger z-corner, to false otherwise.

The documentation for this class was generated from the following files: