Model.morphdoshape#

Model.morphdoshape(option)#

Applies undo, redo, undo all, or redo all.

Parameters:

option (int) –

1 - Undo most recent morph

2 - Redo most recent morph undone

3 - Undo all morphs

4 - Redo all morphs

Example#

Redo most recent morph undone#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdoshape(option=2)

Note

“Morphs” are applied sequentially to the model and stored in a stack. You can move through the stack using the various undo and redo functions to morph and unmorph the model.