33#ifdef OGDF_INCLUDE_CGAL
45template<
typename Kernel,
typename Graph>
46class CrossingMinimalPosition {
48 using Point = geometry::Point_t<Kernel>;
49 using Segment = geometry::LineSegment_t<Kernel>;
50 using Polygon = geometry::Polygon_t<Kernel>;
51 using Drawing = graph::GeometricDrawing<Kernel, Graph>;
52 using Node =
typename Graph::Node;
53 using Edge =
typename Graph::Edge;
56 static Point compute(
const Drawing&
d,
const Node& v,
const std::vector<Edge>&
sample,
57 geometry::Rectangle_t<Kernel>&
rect_box) {
61 if (geometry::is_clockwise(
region)) {
68 p = geometry::largest_circle_in_polygon(
region, 1e-5);
70 p = geometry::centroid(
region);
76 p =
Point(CGAL::to_double(p.x()), CGAL::to_double(p.y()));
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.