Model.morphsmooth#

Model.morphsmooth(dcollection, method, iter)#

Applies smoothing to selected domains.

Parameters:
  • dcollection (Collection) – The collection containing the input domain entities.

  • method (int) –

    The smoothing method to use:

    1 - Autodecide

    2 - Size corrected

    3 - Shape corrected

    4 - Angle corrected

    5 - QI optimized

  • iter (int) – Number of iterations of smoothing (methods 1-4 only).

Example#

Apply the specified smoothing method to all the domains as a morph. Thus, it can be undone or redone.#
import hm
import hm.entities as ent

model = hm.Model()

model.morphsmooth(dcollection=hm.Collection(model, ent.Domain), method=3, iter=10)