TerraLib 4.1
Functions that return geometries.

Functions

TL_DLL TePolygon TeMakePolygon (const TeBox &b)
 Given a box return its polygon representation.
TL_DLL TeLinearRing TeSimpleClosedPath (const TePointSet &pSet)
 Given N points, finds a path that doesn't self-intersects.

Detailed Description

Functions that return geometries.


Function Documentation

TL_DLL TePolygon TeMakePolygon ( const TeBox b)

Given a box return its polygon representation.

Parameters:
bThe box to create a polygon.
TL_DLL TeLinearRing TeSimpleClosedPath ( const TePointSet pSet)

Given N points, finds a path that doesn't self-intersects.

Note:
Given N points, finds a path that doesn't self-intersects, visiting all points and returning to the begginning one. It is based on the book Algorithms by Robert Sedgewick, Addisson-Wesley, 1988;
Parameters:
pSetThe point set to form a path.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines