![]() |
The class Periodic_3_triangulation_hierarchy_3 implements a triangulation augmented with a data structure which allows fast point location queries.
#include <CGAL/Periodic_3_triangulation_hierarchy_3.h>
It is templated by a parameter which must be instantiated by one of the Cgal periodic triangulation classes. In the current implementation, only Periodic_3_Delaunay_triangulation_3 is supported for PTr.
PTr::Vertex has to be a model of the concept
Periodic_3TriangulationHierarchyVertexBase_3.
PTr::Geom_traits has to be a model of the concept
Periodic_3DelaunayTriangulationTraits_3.
PTr
Periodic_3_triangulation_hierarchy_3<PTr> offers exactly the same functionalities as PTr. Most of them (point location, insertion, removal ) are overloaded to improve their efficiency by using the hierarchic structure.
Note that, since the algorithms that are provided are randomized, the running time of constructing a triangulation with a hierarchy may be improved when shuffling the data points.
However, the I/O operations are not overloaded. So, writing a hierarchy into a file will lose the hierarchic structure and reading it from the file will result in an ordinary triangulation whose efficiency will be the same as PTr.