Model.morphshapeapply#

Model.morphshapeapply(shcollection, mult)#

Applies the shapes on the collection to the model.

Parameters:
  • shcollection (Collection) – The collection containing the shape entities to apply in the model.

  • mult (double) – Multiplier to applied shapes.

Example#

The shape with ID 1 is applied to the model and scaled up or down by the multiplier#
import hm
import hm.entities as ent

model = hm.Model()

model.morphshapeapply(shcollection=hm.Collection(model, ent.Shape, [1]), mult=2.0)

Note

For HyperMesh versions 8.0 and higher, active constraints will be applied to the shapes. For previous versions of HyperMesh, constraints were not applied.