| Home
| Previous
| Next
| Up

UnionRegion

Computes the Boolean union of two regions.

Declaration

ibool NAPI GA_regionFuncs::UnionRegion(
GA_region *r1,
const GA_region *r2)

Prototype In

snap/graphics.h

Parameters

r1 | Region with which r2 is unioned, and also becomes the result region.
r2 | Region to be unioned with r1

Return Value

True if the union is valid, false if an empty region was created.

Description

Computes the Boolean union of two regions for the area covered by region r1 and region r2, computing the resulting region in r1, which may result in an empty region. If you need to retain the value of r1, you need to first copy r1 to a temporary region.

See Also

DiffRegion, SectRegion, UnionRegionOfs, UnionRegionRect

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com