Model.morphvolumeconnect#

Model.morphvolumeconnect(hcube1, hcube2, tan, mode, nauto)#

Joins the specified morph volumes.

Parameters:
  • hcube1 (Entity) – The first morph volume entity.

  • hcube2 (Entity) – The second morph volume entity.

  • tan (int) –

    0 - No tangency

    1 - Make neighboring morph volume edges continuously tangent

  • mode (int) –

    0 - Join hcube2 to hcube1

    1 - Join hcube1 to hcube2

    2 - Join at midpoint

  • nauto (int) –

    0 - Do not register all nodes found inside morph volumes

    1 - Register all nodes found inside morph volumes

Example#

Join the morph volumes with IDs 21, 22 provided that the process does not make the morph volume “matrix” inconsistent. Newly combined morph volumes can optionally have tangency automatically applied#
import hm
import hm.entities as ent

model = hm.Model()

model.morphvolumeconnect(
hcube1=ent.Morphvolume(model, 21),
hcube2=ent.Morphvolume(model, 22),
tan=1,
mode=1,
nauto=1,
)