Model.morphpartition#

Model.morphpartition(dcollection)#

Organizes elements in a collection into specified domain.

Parameters:

dcollection (Collection) – The collection containing the domain entities.

Example#

Only 2D domains on the collection will be partitioned#
import hm
import hm.entities as ent

model = hm.Model()

model.morphpartition(dcollection=hm.CollectionByInteractiveSelection(model, ent.Domain))