Defines "Region B" polygon for use in determining whether two regions overlap.
Syntax
01 SPHANDLE PIC S9(9) BINARY.
01 NUMPOINTS PIC S9(9) BINARY.
01 POINTS PIC S9(9) BINARY.
01 SPRETCODE PIC S9(9) BINARY.
*
CALL ‘SPARBP'
USING SPHANDLE, NUMPOINTS, POINTS, SPRETCODE.
Arguments
SPHANDLE Handle from SPINOCK. Input. NUMPOINTS Number of points in the polygon. Input. POINTS Points describing the polygon. Input.
Return Values
PIP-OK
PIP-ERROR
Prerequisites
SPINOCK.
Alternates
SPOFFPX.
Notes
You must also call SPARAP.
This procedure defines the second region used by SPCKRO when comparing two regions.
You can compare multiple RegionB polygons to a single first region using the same handle returned by SPINOCK. Call SPCLLAP after SPCKRO or SPCKROX and before additional calls to SPARBP.