CGAL::Kinetic::Regular_triangulation_3<Traits, Visitor, Triangulation>

Definition

The class Kinetic::Regular_triangulation_3<Traits, Visitor, Triangulation> maintains a triangulation of set of moving weighted points. Its interface is the same as Kinetic::Delaunay_triangulation_3<Traits, Visitor, Triangulation>.

The optional Triangulation template argument must be a model of CGAL::RegularTriangulation_3 which has Kinetic::Regular_triangulation_cell_base_3<Traits, Base> as a cell base and Kinetic::Regular_triangulation_vertex_base_3<Traits, Base> as a vertex base.

#include <CGAL/Kinetic/Regular_triangulation_3.h>

See Also

Kinetic::Delaunay_triangulation_3<Traits, Visitor, Triangulation>. Kinetic::RegularTriangulationVisitor3.

Example

#include <CGAL/Kinetic/Regular_triangulation_exact_simulation_traits_3.h>
#include <CGAL/Kinetic/Regular_triangulation_3.h>

int main(int, char *[]) {
    typedef CGAL::Kinetic::Regular_triangulation_exact_simulation_traits_3 Traits;
    typedef CGAL::Kinetic::Regular_triangulation_3<Traits> KDel;

    Traits tr;
    KDel kdel(tr);

    Traits::Simulator::Handle sp= tr.simulator_handle();
  
    std::ifstream in("data/weighted_points_3");
    in >> *tr.active_points_3_table_handle();
    
    std::cout <<  *tr.active_points_3_table_handle() << std::endl;

    kdel.set_has_certificates(true);
   
    sp->set_current_event_number(10000);
    return EXIT_SUCCESS;
};