Model.morphsplitmorphvolumes#

Model.morphsplitmorphvolumes(n1, n2, split, hand, tangent)#

Splits the morph volumes in the model given the specified morph volume edge.

Parameters:
  • n1 (Entity) – The node entity of the first end node of morph volume edge.

  • n2 (Entity) – The second node entity of second end node of morph volume edge.

  • split (double) –

    > 1.0 - Number of splits.

    < 1.0 - Position along edge for split.

  • hand (int) –

    0 - Do not create handles for morph volumes.

    1 - Create handles for morph volumes.

  • tangent (int) –

    0 - No tangency.

    1 - Make neighboring morph volume edges continuously tangent.

Example#

Propagate one or more splits along the specified morph volume edge through the entire morph volume so that it remains consistent#
import hm
import hm.entities as ent

model = hm.Model()

model.morphsplitmorphvolumes(
    n1=ent.Node(model, 21), n2=ent.Node(model, 22), split=2.0, hand=1, tangent=1
)

Note

Newly formed morph volumes can optionally have handles and tangency automatically applied.

The higher the value of ‘split’ (if less than 1.0), the closer to n2 the split will occur.