\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.11.2 - 3D Skin Surface Meshing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Skin_surface_3/union_of_balls_simple.cpp
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Union_of_balls_3.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/mesh_union_of_balls_3.h>
#include <list>
typedef CGAL::Union_of_balls_3<Traits> Union_of_balls_3;
typedef Union_of_balls_3::Bare_point Bare_point;
typedef Union_of_balls_3::Weighted_point Weighted_point;
typedef CGAL::Polyhedron_3<K> Polyhedron;
int main()
{
std::list<Weighted_point> l;
l.push_front(Weighted_point(Bare_point(0,0,0), 1));
l.push_front(Weighted_point(Bare_point(0,1,0), 2));
l.push_front(Weighted_point(Bare_point(0,0,2), 1));
Union_of_balls_3 union_of_balls(l.begin(), l.end());
Polyhedron p;
CGAL::mesh_union_of_balls_3(union_of_balls, p);
return 0;
}