Model.morphsubdivide#

Model.morphsubdivide(dcollection, fcollection, rethand)#

Subdivides selected 3D domains.

Parameters:
  • dcollection (Collection) – The collection containing the domain entities to be subdivided.

  • fcollection (Collection) – The collection containing the divisible entities.

  • rethand (int) –

    0 - Do not retain handles

    1 - Retain handles

Example#

Subdivide the 3D domains by selecting them interactively#
import hm
import hm.entities as ent

model = hm.Model()

model.morphsubdivide(
    dcollection=hm.CollectionByInteractiveSelection(model, ent.Domain),
    fcollection=hm.CollectionByInteractiveSelection(model, ent.Domain),
    rethand=1,
)

Note

Subdivides the selected 3D domains into smaller domains while refraining from dividing any attached 2D domains that are not specified as being divisible.

It is possible for 3D domains to be shaped in such a way that it is impossible to subdivide them without dividing 2D domains that are not specified as being divisible. In this case the function will complete without the domain being subdivided.