CompoundStructure.MergeRegionsAdjacentToSegment
Description:
Merges the two regions which share the specified segment.
Merges the two regions which share the specified segment.
-
segmentIdThe id of a segment in the underlying grid.
-
layerIdxForMergedRegionThe 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.
-
The layer index is out of range.
-
This operation is valid only for vertically compound structures. -or- The segment is not shared by adjacent regions.