|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Convex polygon intersection demo (Sutherland-Hodgman). More...
#include <geom_algorithms.H>#include <cassert>#include <fstream>#include <iomanip>#include <iostream>Go to the source code of this file.
Functions | |
| static void | print_banner (const char *title) |
| static Geom_Number | polygon_area (const Polygon &poly) |
| static void | write_polygon_wkt (ostream &out, const Polygon &poly) |
| static bool | export_csv (const char *path, const Polygon &subject, const Polygon &clip, const Polygon &inter) |
| static void | print_polygon (const char *name, const Polygon &poly) |
| int | main (int argc, char **argv) |
Convex polygon intersection demo (Sutherland-Hodgman).
Demonstrates:
ConvexPolygonIntersectionBasic (Sutherland-Hodgman clipping)Definition in file polygon_intersection_example.cc.
|
static |
Definition at line 111 of file polygon_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), file, polygon_area(), and write_polygon_wkt().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 148 of file polygon_intersection_example.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::divide_and_conquer_partition_dp(), export_csv(), polygon_area(), print_banner(), and print_polygon().
|
static |
Definition at line 60 of file polygon_intersection_example.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::Point::get_x(), Aleph::Point::get_y(), Aleph::Dlink::Iterator::has_curr(), Aleph::Polygon::is_closed(), Aleph::Array< T >::reserve(), Aleph::Polygon::size(), and Aleph::Array< T >::size().
Referenced by export_csv(), main(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 54 of file polygon_intersection_example.cc.
Referenced by main().
|
static |
Definition at line 136 of file polygon_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), Aleph::Dlink::Iterator::has_curr(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
Referenced by main().
|
static |
Definition at line 83 of file polygon_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), and Aleph::Dlink::Iterator::has_curr().
Referenced by export_csv().