Model.morphvolumecreatenodes#
- Model.morphvolumecreatenodes(nodes, ecollection, han, ord, tan, nauto)#
Creates a morph volume for the given nodes enclosing the elements on the collection.
- Parameters:
nodes (EntityList) – The entity node list.
ecollection (Collection) – The collection containing the element entities to be enclosed.
han (int) –
0 - Do not create handles for morph volumes
1 - Create handles for morph volumes
ord (int) – Order of morph volumes.
tan (int) –
0 - No tangency
1 - Make neighboring morph volume edges continuously tangent
nauto (int) –
0 - Do not register all nodes found inside morph volume
1 - Register all nodes found inside morph volume
Example#
Create a morph volume enclose the elements selected interactively and connect to the specified nodes on the list#import hm import hm.entities as ent model = hm.Model() model.morphvolumecreatenodes( nodes=[ent.Node(model, 1), ent.Node(model, 2), ent.Node(model, 3)], ecollection=hm.CollectionByInteractiveSelection(model, ent.Element), han=1, ord=1, tan=1, nauto=1, )
Note
The selected nodes must either define at least one morph volume face or be eight in number. The element collection may be empty, but if it is not the morph volume will be created in such a way that it encloses the elements if possible.
The order of the morph volumes (ord) refers to the number of mid-nodes along each edge with an order of one meaning there will be no mid-nodes, an order of two meaning that there will be one mid-node, and so forth.