Model.morphcombineedges#

Model.morphcombineedges(dcollection, rethand)#

Combines multiple edge domains into one edge domain.

Parameters:
  • dcollection (Collection) – The collection containing the domain entities to combine.

  • rethand (int) –

    0 - Do not retain handles

    1 - Retain handles

Example#

Update all selected edge domain entities into one edge domain .#
import hm
import hm.entities as ent

model = hm.Model()

model.morphcombineedges(
    dcollection=hm.CollectionByInteractiveSelection(model, ent.Domain), rethand=1
)

Note

The following cases are not allowed: edges which form internal loops (but a single loop is fine), edges which have too many overlaps, edges which do not connect.