Model.morphmanualrestore#

Model.morphmanualrestore()#

Restores the positions of nodes after a morphmanualinit() function.

Example#

Move manually the nodes and apply them to the mesh as if they were handles use internally generated domains with inferred edges, then reject the changes#
import hm
import hm.entities as ent

model = hm.Model()

model.morphmanualinit()
"""
<<any commands which move nodes>>
"""
model.morphmanualapplyenvelope(
    e_collection=hm.Collection(model, ent.Node, [21, 22, 23]),
    f_collection=hm.Collection(model, ent.Element),
    mode=1,
    mbias=1.0,
    fbias=1.0,
    integ=2,
    envelope=0.0,
    undisplayed=0,
)
model.morphmanualrestore()