|
|
|
|
MGL_optimizeRegion
Optimizes the union of rectangles in the region to the minimum number of rectangles.
Declaration
void MGLAPI MGL_optimizeRegion(
region_t *r)
Prototype In
mgraph.h
Parameters
r |
Region to optimize |
Description
This function optimizes the specified region by traversing the region structure looking for identical spans in the region. The region algebra functions (MGL_unionRegion, MGL_diffRegion, MGL_sectRegion etc.) do not fully optimize the resulting region to save time, so after you have created a complex region you may wish to call this routine to optimize it.
Optimizing the region will find the minimum number of rectangles required to represent that region, and will result in faster drawing and traversing of the resulting region.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com