33 #ifdef OGDF_INCLUDE_CGAL
48 template<
typename kernel>
49 geometry::Point_t<kernel> extract_point(
const GraphAttributes& ga,
const node node) {
53 template<
typename kernel>
54 geometry::LineSegment_t<kernel> extract_segment(
const GraphAttributes& ga,
const edge&
edge) {
58 template<
typename Graph,
typename Polygon>
59 void extract_polygon(
const Graph& g,
const face&
face, Polygon& p) {
63 p.push_back(g.get_point(current->theNode()));
66 }
while (current != first);
69 template<
typename kernel,
typename Polygon>
70 void extract_polygon(
const GraphAttributes& ga,
const face&
face,
71 NodeArray<unsigned int>& node_to_id, Polygon& p) {
76 node_to_id[current->theEdge()->source()] = p.size();
77 p.push_back(extract_point<kernel>(ga, current->theEdge()->source()));
79 }
while (current !=
nullptr);