[This is preliminary documentation and is subject to change.]
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)
|C#||Visual Basic||Visual C++|
The context to use duing the operation.
The AABB border size to apply.
The minimum area allowed for unconnected (island) regions. [Units: Spans]
The maximum region size that will be considered for merging with another region. [Units: Spans]
Return ValueTrue if the operation completed successfully.
Non-null regions consist of connected, non-overlapping walkable spans that form a single contour.
If a region forms an area that is smaller than minRegionArea, all spans in the region is set to NullRegion.
Watershed partitioning can result in smaller than necessary regions, especially in diagonal corridors. mergeRegionArea helps reduce unecessarily small regions.