Functions
contrib/gel/gst/gst_polygon_2d_operators.cxx File Reference
#include "gst_polygon_2d_operators.h"

Go to the source code of this file.

Functions

vcl_vector< gst_polygon_2d_sptrgst_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_sptrgst_make_polygons_2d_unoriented (const vcl_vector< gst_edge_2d_sptr > edges)
 Turn a list of edges into a list of polygons.

Detailed Description

Author:
crossge@crd.ge.com

Definition in file gst_polygon_2d_operators.cxx.


Function Documentation

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.