Model.splitSurfaceRegions#
- Model.splitSurfaceRegions(collection, split_mode)#
Splits regions based on the connectivity of the contained surfaces.
The surfaces contained in the input regions are grouped, the original regions are split based on the groupings, new regions are created for each group, and the original regions are deleted.
- Parameters:
collection (Collection) – The collection containing the input region entities.
split_mode (hwString) –
ByAttached - Group the surfaces by attached
ByFace - Group the surfaces by face
Example#
Split all regions of surfaces by attached#import hm import hm.entities as ent model = hm.Model() model.splitSurfaceRegions( collection=hm.Collection(model, ent.Region), split_mode="ByAttached" )