regionConvexHull

[ XITE Reference Manual | XITE home ]

Name

regionConvexHull - find the convex hull of a region

Syntax

 #include <xite/region.h>

 region *regionConvexHull( region* reg );

Description

regionConvexHull finds the convex hull of the input region reg. The convex hull is the smallest convex region containing the whole input region. The convex hull is returned as function value.

Restrictions

reg should not be nil.

See also

regionAnalyse(1), regionConvexHull(1), regionArea(3), regionCreate(3), regionDraw(3), regionFree(3), regionHistoUpdate(3), regionHisto(3), regionImoment(3), regionInsertYline(3), regionDeleteYline(3), regionEndInsert(3), regionXmean(3), regionYmean(3), regionMean(3), regionXmin(3), regionXmax(3), regionYmin(3), regionYmax(3), regionMinMax(3), regionCMoment(3), regionPMoment(3), regionMoment(3), regionPerform(3), regionPerimeter(3), regionIsPoint(3), regionPoint(3), regionSearch(3), regionSort(3), regionCopy(3), regionUnion(3), regionOverlap(3), regionNeighbor(3), regionVolume(3), regionYline(3)

Return value

The convex hull if ok, nil otherwise.

Diagnostics

 error 2 : "input region is nil"
 error 3 : "malloc failed", ran out of virtual memory

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: regionConvexHull.c,v 1.20 1997/01/16 16:07:37 svein Exp $