Programmer Guide/Command Reference/EVAL/pginit: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

pginit - initialise polygon
Usage:

P := pgInit( {pg_cplist}X, {number}N=0, {number}E=0 )

Function:

Initialize polygons from a closed-point-list

Parameters:
X
A point-list defining one or more polygons.
N
The requested number of simple polygons:
N<=0 - unknown, computed during initialization
N>0 - exactly N simple polygons must be contained in X
E
The maximum error for polygon simplification, if E<=0 the simplification is skipped.
Result:

A polygon-stream P containing all simple-polygons defined by X.

If N>0, the number of polygons defined by X must be equal to N.

Examples:

See the example macro polygon_stream in the example script polygon_examples.sts.

Navigation menu

Personal tools