CGAL 5.1 - dD Spatial Searching
CGAL::Midpoint_of_max_spread< Traits, SpatialSeparator > Class Template Reference

#include <CGAL/Splitters.h>

Definition

template<typename Traits, typename SpatialSeparator>
class CGAL::Midpoint_of_max_spread< Traits, SpatialSeparator >

Implements the midpoint of max spread splitting rule. A rectangle is cut through \( (\mathrm{Mind}+\mathrm{Maxd})/2\) orthogonal to the dimension with the maximum point spread \( [\mathrm{Mind},\mathrm{Maxd}]\).

Parameters

Expects for the first template argument a model of the concept SearchTraits, for example the type CGAL::Search_traits_3< Cartesian<double> >.

Expects for the second template argument a model of the concept SpatialSeparator. It has as default value the type, CGAL::Plane_separator<Traits::FT>

Is Model Of:
Splitter
See also
Splitter
SpatialSeparator

Creation

 Midpoint_of_max_spread ()
 Default constructor. More...
 
 Midpoint_of_max_spread (unsigned int bucket_size)
 Constructor. More...
 

Constructor & Destructor Documentation

◆ Midpoint_of_max_spread() [1/2]

template<typename Traits , typename SpatialSeparator >
CGAL::Midpoint_of_max_spread< Traits, SpatialSeparator >::Midpoint_of_max_spread ( )

Default constructor.

◆ Midpoint_of_max_spread() [2/2]

template<typename Traits , typename SpatialSeparator >
CGAL::Midpoint_of_max_spread< Traits, SpatialSeparator >::Midpoint_of_max_spread ( unsigned int  bucket_size)

Constructor.