mirror of https://github.com/CGAL/cgal
documenting that Median_of_rectangle splitter is robust
bugfix
This commit is contained in:
parent
fc08cf5fb2
commit
934054c9ba
|
|
@ -237,7 +237,7 @@ namespace CGAL {
|
|||
void
|
||||
operator() (Separator& sep, Container& c0, Container& c1) const
|
||||
{
|
||||
if (!CGAL::is_zero(c0.max_spread()))
|
||||
if (!CGAL::is_zero(c0.tight_bounding_box().max_coord(c0.max_span_coord()) - c0.tight_bounding_box().min_coord(c0.max_span_coord())))
|
||||
sep = Separator(c0.max_span_coord(),FT(0));
|
||||
else sep = Separator(c0.max_tight_span_coord(), FT(0));
|
||||
sep.set_cutting_value(c0.median(sep.cutting_dimension()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue