Model.morphmanualinit#
- Model.morphmanualinit()#
Stores the current node locations for the model so that node movements done through any means (morphing or otherwise) can be recorded and saved as a morph after using the
morphmanualapplyenvelope()function.Manually morphed nodes can later be undone and redone, or saved as a shape.
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()