Model.morphcreatedomainedge#

Model.morphcreatedomainedge(nodes)#

Creates a domain from list of node entities.

Parameters:

nodes (EntityList) – The list that contains the node entities.

Example#

A new edge domain is created from the list of the node entities. The new edge domain will run along the nodes in the list sequentially. Handles will be created at the ends of the domain and possibly in the middle depending on angles, curvature, and selected portioning options#
import hm
import hm.entities as ent

model = hm.Model()

model.morphcreatedomainedge(
    nodes=[ent.Node(model, 1), ent.Node(model, 2), ent.Node(model, 3)]
)