\( \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.org
Top
Getting Started
Tutorials
Package Overview
Acknowledging CGAL
CGAL 4.13.1 - 3D Polyhedral Surface
Polyhedron/polyhedron_prog_simple.cpp
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
typedef
CGAL::Simple_cartesian<double>
Kernel
;
typedef
CGAL::Polyhedron_3<Kernel>
Polyhedron;
typedef
Polyhedron::Halfedge_handle Halfedge_handle;
int
main() {
Polyhedron P;
Halfedge_handle h = P.
make_tetrahedron
();
if
( P.is_tetrahedron(h))
return
0;
return
1;
}