CGAL 6.1.2 - 3D Periodic Triangulations: Periodic_3_triangulation_3/p3rt3_insert_only.cpp

CGAL 6.1.2 - 3D Periodic Triangulations

Loading...
Searching...
No Matches
Periodic_3_triangulation_3/p3rt3_insert_only.cpp
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Periodic_3_regular_triangulation_traits_3.h>
#include <CGAL/Periodic_3_regular_triangulation_3.h>
#include <CGAL/periodic_3_triangulation_3_io.h>
#include <CGAL/Regular_triangulation_vertex_base_3.h>
#include <CGAL/Regular_triangulation_cell_base_3.h>
#include <iostream>
typedef CGAL::Epick K;
typedef CGAL::Periodic_3_regular_triangulation_traits_3<K> Gt;
/* If remove() isn't called in our program, we can use a triangulation data structure
* more appropriate, which saves some memory resources.
*/
typedef CGAL::Regular_triangulation_vertex_base_3<Gt,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<> > Vb;
typedef CGAL::Regular_triangulation_cell_base_3<Gt,
CGAL::Periodic_3_triangulation_ds_cell_base_3<> > Cb;
typedef CGAL::Triangulation_data_structure_3<Vb, Cb> Tds;
typedef CGAL::Periodic_3_regular_triangulation_3<Gt, Tds> P3RT3;
typedef Gt::Iso_cuboid_3 Iso_cuboid;
typedef Gt::Weighted_point_3 Weighted_point_3;
typedef Gt::Point_3 Point_3;
typedef P3RT3::Vertex_handle Vertex_handle;
int main(int, char**)
{
P3RT3 p3rt3(P3RT3::Iso_cuboid(0,0,0, 1,1,1));
p3rt3.insert(Weighted_point_3(Point_3(0.1,0.1,0.1), 0.01));
p3rt3.insert(Weighted_point_3(Point_3(0.9,0.1,0.1), 0.01));
p3rt3.insert(Weighted_point_3(Point_3(0.1,0.9,0.1), 0.01));
p3rt3.insert(Weighted_point_3(Point_3(0.1,0.1,0.9), 0.01));
p3rt3.insert(Weighted_point_3(Point_3(0.4,0.4,0.4), 0.001));
std::cout << "EXIT SUCCESS" << std::endl;
return 0;
}
CGAL::Periodic_3_regular_triangulation_3
The class Periodic_3_regular_triangulation_3 represents a weighted Delaunay triangulation in three-di...
Definition: Periodic_3_regular_triangulation_3.h:28
CGAL::Periodic_3_regular_triangulation_traits_3
The class Periodic_3_regular_triangulation_traits_3 is designed as a default traits class for the cla...
Definition: Periodic_3_regular_triangulation_traits_3.h:22
CGAL::Periodic_3_triangulation_ds_cell_base_3
The class Periodic_3_triangulation_ds_cell_base_3 is a model of the concept Periodic_3TriangulationDS...
Definition: Periodic_3_triangulation_ds_cell_base_3.h:20
CGAL::Periodic_3_triangulation_ds_vertex_base_3
The class Periodic_3_triangulation_ds_vertex_base_3 is a model of the concept Periodic_3Triangulation...
Definition: Periodic_3_triangulation_ds_vertex_base_3.h:20
CGAL::Regular_triangulation_cell_base_3
CGAL::Regular_triangulation_vertex_base_3
CGAL::Triangulation_data_structure_3