Model.morphconstraintapply#
- Model.morphconstraintapply()#
Applying all morph constraints to the model.
Example#
Apply the current constraints to the model . When constraints are created they are applied to the model so this function does not need to be called after creation of a morph constraint .#import hm import hm.entities as ent model = hm.Model() model.morphconstraintapply()
Note
Constraints are applied via a morph, which can be undone. Undoing such a morph does not reject the constraint.
Note
If the model no longer obeys the constraints, for instance, if the constraints are turned off and the model is morphed, this function can be used to restore compliance.