Model.morphsymmetryupdatebyd#

Model.morphsymmetryupdatebyd(dptr, collectionsym)#

Updates symmetries for a domain.

Parameters:
  • dptr (Entity) – The domain entity.

  • collectionsym (Collection) – The collection containing the input symmetry entities to update.

Example#

Update the domain with ID 4 to use the symmetries selected interactively#
import hm
import hm.entities as ent

model = hm.Model()

model.morphsymmetryupdatebyd(
    dptr=ent.Domain(model, 4),
    collectionsym=hm.CollectionByInteractiveSelection(model, ent.Symmetry),
)