GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Go to the source code of this file.
Data Structures | |
struct | pg_edge |
struct | pg_vertex |
struct | planar_graph |
Functions | |
struct planar_graph * | pg_create_struct (int n, int e) |
void | pg_destroy_struct (struct planar_graph *pg) |
int | pg_existsedge (struct planar_graph *pg, int v1, int v2) |
void | pg_addedge (struct planar_graph *pg, int v1, int v2) |
struct planar_graph * | pg_create (struct line_pnts *Points) |
void pg_addedge | ( | struct planar_graph * | pg, |
int | v1, | ||
int | v2 | ||
) |
Definition at line 409 of file dgraph.c.
References planar_graph::e, planar_graph::eallocated, planar_graph::ecount, G_debug(), G_fatal_error(), pg_addedge1(), pg_existsedge(), planar_graph::v, pg_edge::v1, pg_edge::v2, planar_graph::vcount, pg_edge::visited_left, pg_edge::visited_right, pg_edge::winding_left, and pg_edge::winding_right.
Referenced by pg_create().
struct planar_graph* pg_create | ( | struct line_pnts * | Points | ) |
Definition at line 442 of file dgraph.c.
References seg_intersection_list::a, pg_vertex::angles, seg_intersection_list::count, destroy_si_struct(), pg_vertex::ecount, pg_vertex::edges, find_all_intersections(), G_debug(), intersection_point::group, seg_intersections::group_count, seg_intersections::il, seg_intersections::ilcount, seg_intersection::ip, seg_intersections::ip, seg_intersections::ipcount, pg_addedge(), pg_create_struct(), planar_graph::v, pg_edge::v1, pg_edge::v2, planar_graph::vcount, pg_vertex::x, intersection_point::x, pg_vertex::y, and intersection_point::y.
Referenced by Vect_line_buffer2().
struct planar_graph* pg_create_struct | ( | int | n, |
int | e | ||
) |
Definition at line 343 of file dgraph.c.
References planar_graph::e, planar_graph::eallocated, planar_graph::ecount, MAX, n, NULL, planar_graph::v, and planar_graph::vcount.
Referenced by pg_create().
void pg_destroy_struct | ( | struct planar_graph * | pg | ) |
Definition at line 359 of file dgraph.c.
References pg_vertex::angles, planar_graph::e, pg_vertex::edges, G_free(), planar_graph::v, and planar_graph::vcount.
Referenced by Vect_line_buffer2().
int pg_existsedge | ( | struct planar_graph * | pg, |
int | v1, | ||
int | v2 | ||
) |
Definition at line 373 of file dgraph.c.
References pg_vertex::ecount, pg_vertex::edges, planar_graph::v, pg_edge::v1, and pg_edge::v2.
Referenced by pg_addedge().