33#ifdef OGDF_INCLUDE_CGAL
48template<
typename kernel>
49geometry::Point_t<kernel> extract_point(
const GraphAttributes& ga,
const node node) {
53template<
typename kernel>
54geometry::LineSegment_t<kernel> extract_segment(
const GraphAttributes& ga,
const edge&
edge) {
58template<
typename Graph,
typename Polygon>
59void extract_polygon(
const Graph& g,
const face&
face, Polygon& p) {
63 p.push_back(g.get_point(current->theNode()));
66 }
while (current != first);
69template<
typename kernel,
typename Polygon>
70void 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);
Declaration of CombinatorialEmbedding and face.
Includes declaration of graph class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
adjEntry faceCycleSucc() const
Returns the cyclic successor in face.
node target() const
Returns the target node of the edge.
node source() const
Returns the source node of the edge.
adjEntry nextFaceEdge(adjEntry adj) const
Returns the successor of adj in the list of all adjacency elements in the face.
adjEntry firstAdj() const
Returns the first adjacency element in the face.
AdjElement * adjEntry
The type of adjacency entries.
NodeElement * node
The type of nodes.
EdgeElement * edge
The type of edges.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.