Model.hm_morphupdatecheck#
- Model.hm_morphupdatecheck()#
Maintains the database with respect to HyperMorph entities. It checks for changes in the database on which HyperMorph entities depend, and if it finds any it calls functions that update those entities to account for the changes. For instance, if elements are deleted for a domain, this function will update all dependent domains, potentially add or remove handles, and recalculate the influences for all the affected domains.
Needs to be called before any morphing functions are called and after any functions are called which affect HyperMorph entities or the entities on which they depend. When HyperMesh is run interactively this function is called when you enter and leave any HyperMorph panel, the delete panel, or the shape panel. If HyperMesh is being run through an interface, this function can be called when any model is loaded into HyperMesh, before and after every HyperMorph function (the ones with “morph” in them), and after anything is deleted to ensure proper functioning.
- Returns:
hwReturnStatus- Status object
Example#
Calculate and perform any necessary HyperMorph updates#import hm import hm.entities as ent model = hm.Model() model.hm_morphupdatecheck()