33#ifdef OGDF_INCLUDE_CGAL
44# include <CGAL/Triangle_2.h>
54template<
typename Kernel>
61 for (
unsigned int i = 0; i <
triang.size(); i = i + 3) {
62 unsigned int a =
triang[i];
63 unsigned int b =
triang[i + 1];
64 unsigned int c =
triang[i + 2];
66 CGAL::Triangle_2<Kernel>
t(polygon[a], polygon[b], polygon[c]);
68 weights.push_back(CGAL::to_double(CGAL::abs(
t.area())));
78 std::uniform_real_distribution<double>
t_dist(0.0, 1.0);
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.