#include "gst_polygon_2d_operators.h"
Go to the source code of this file.
Functions | |
vcl_vector< gst_polygon_2d_sptr > | gst_make_polygons_2d (const vcl_vector< gst_edge_2d_sptr > edges) |
Turn a list of edges into a list of polygons. | |
vcl_vector< gst_polygon_2d_sptr > | gst_make_polygons_2d_unoriented (const vcl_vector< gst_edge_2d_sptr > edges) |
Turn a list of edges into a list of polygons. |
Definition in file gst_polygon_2d_operators.cxx.
vcl_vector<gst_polygon_2d_sptr> gst_make_polygons_2d | ( | const vcl_vector< gst_edge_2d_sptr > | edges | ) |
Turn a list of edges into a list of polygons.
This is not necessarily efficient, and not unique if the topology is complicated. If there are shared edges, beware... it might be ok, though.
The edges must be correctly oriented (which makes possible shared edges difficult).
Definition at line 11 of file gst_polygon_2d_operators.cxx.
vcl_vector<gst_polygon_2d_sptr> gst_make_polygons_2d_unoriented | ( | const vcl_vector< gst_edge_2d_sptr > | edges | ) |
Turn a list of edges into a list of polygons.
Each edge can only be used once, BUT orientation is not important.
Definition at line 78 of file gst_polygon_2d_operators.cxx.