Model.morphupdatemodelcheck#
- Model.morphupdatemodelcheck()#
Scans through all of the morphing entities and update those which have been modified since the last time this function was run. This function is a maintenance tool used by to update morphing entities due to changes in other morphing entities or in parts of the mesh governed by domains. When is used interactively this function is called whenever you enter or leave a panel, leave the delete panel, or output shapes.
Some of the purposes this function serves are to update the domains if any of their elements were deleted, update handle influence coefficients if their domains have been changed, and update symmetries if their handles have changed. Because performing these actions can take a considerable amount of time, it is done infrequently rather than whenever a handle or a domain is modified. This allows you to make a number of changes to the model while in the domain panel and only need to wait for influences to be calculated when you leave the panel.
When running in batch mode it is recommended to call this function before any morphing function is to be called and before any shapes are to be output. Note that domains will only be recalculated when they need to be recalculated regardless of how often this function is called, thus calling this function frequently will not significantly slow down the performance of any batch processes.
Example#
Update all morph entities in the model#import hm import hm.entities as ent model = hm.Model() model.morphupdatemodelcheck()