Programmer Guide/Command Reference/EVAL/pghull: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
:<code>pghull(<var>X</var>, <var>IX</var>, <var>Y</var>, <var>IY</var>)</code> | :<code>pghull(<var>X</var>, <var>IX</var>, <var>Y</var>, <var>IY</var>)</code> | ||
:;<var>X</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | :;<var>X</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | ||
:;<var>IX</var>:the index of a polygon of ''X''; 0 | :;<var>IX</var>:the index of a polygon of ''X''; 0 ≤ <var>IX</var> < <code>[[../pgget|pgget]](''X'')</code> | ||
:;<var>Y</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | :;<var>Y</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | ||
:;<var>IY</var>:the index of a polygon of ''Y''; 0 | :;<var>IY</var>:the index of a polygon of ''Y''; 0 ≤ <var>IY</var> < <code>[[../pgget|pgget]](''Y'')</code> | ||
;Result: The result ''r'' is a [[../#polygons|polygon-stream]] containing the hull polygon of ''X<sub>IX</sub>'' and ''Y<sub>IY</sub>''. The function fails if the two polygons have no overlapping regions. | ;Result: The result ''r'' is a [[../#polygons|polygon-stream]] containing the hull polygon of ''X<sub>IX</sub>'' and ''Y<sub>IY</sub>''. The function fails if the two polygons have no overlapping regions. | ||
;See also: [[../pginit|pginit]], [[../pgget|pgget]], [[../pgitest|pgitest]], [[../pgiline|pgiline]], [[../pgxgrid|pgxgrid]], [[../pgsplit|pgsplit]], [[../pgtrans|pgtrans]] | ;See also: [[../pginit|pginit]], [[../pgget|pgget]], [[../pgitest|pgitest]], [[../pgiline|pgiline]], [[../pgxgrid|pgxgrid]], [[../pgsplit|pgsplit]], [[../pgtrans|pgtrans]] | ||
[[../#Functions|<function list>]] | [[../#Functions|<function list>]] |
Latest revision as of 19:28, 21 April 2011
Calculate the hull polygon of two polygons.
- Usage
pghull(X, IX, Y, IY)
- X
- a closed point-list or a polygon-stream defining one or more polygons.
- IX
- the index of a polygon of X; 0 ≤ IX <
pgget(X)
- Y
- a closed point-list or a polygon-stream defining one or more polygons.
- IY
- the index of a polygon of Y; 0 ≤ IY <
pgget(Y)