2024 Method
Changes 0
M

CompoundStructure.MergeRegionsAdjacentToSegment

Description:
Merges the two regions which share the specified segment.
public int MergeRegionsAdjacentToSegment(
	int segmentId,
	int layerIdxForMergedRegion
)
  • Int32
    segmentId
    The id of a segment in the underlying grid.
  • Int32
    layerIdxForMergedRegion
    The index of the layer to which the resulting region will be associated.
Return Value int The id of the resulting region. If -1 is returned, then the operation would have produced an invalid region and was not performed.