Function CGAL::grid_simplify_point_set() considers a regular grid covering the bounding box of the input point set, and clusters all points sharing the same cell of the grid by picking as representant one arbitrarily chosen point.
This method modifies the order of input points so as to pack all remaining points first, and returns an iterator over the first point to remove (see erase-remove idiom). For this reason it should not be called on sorted containers.
#include <CGAL/grid_simplify_point_set.h>
| ||||||||||
|
| |||||||||
Merges points which belong to the same cell of a grid of cell size = epsilon. This method modifies the order of input points so as to pack all remaining points first, and returns an iterator over the first point to remove (see erase-remove idiom). For this reason it should not be called on sorted containers.
|
CGAL::random_simplify_point_set
See grid_simplification_example.cpp.