Model.morphvolumeequivalence#

Model.morphvolumeequivalence(c_collection, tol, tan, nauto)#

Joins all morph volumes on the collection whose faces are within a set tolerance. Creating tangency between joined morph volumes and automatic registering of nodes inside reshaped morph volumes are optional features.

Parameters:
  • c_collection (Collection) – The collection containing the input morph volume entities.

  • tol (double) – Maximum distance between morph volumes for joining.

  • tan (int) –

    0 - Do not create tangency between edges of joined morph volumes.

    1 - Create tangency between edges of joined morph volumes.

  • nauto (int) –

    0 - Do not register new nodes.

    1 - Register new nodes.

Example#

Join all morph volumes which are within 10.0 model units of each other#
import hm
import hm.entities as ent

model = hm.Model()

model.morphvolumeequivalence(
    c_collection=hm.Collection(model, ent.Morphvolume), tol=10.0, tan=1, nauto=1
)