Model.morphdeletemvedgenodes#

Model.morphdeletemvedgenodes(collection)#

Removes the specified mid-edge nodes which govern the shape of a morph volume edge. The edges will then be refit to follow the shape of the remaining nodes, which may change the shape of the morph volume. Nodes at the ends of edges may not be deleted and will be ignored by this function. The nodes to be removed may be specified either by the nodes or the handles on those nodes. Updating the nodes for a morph volume will not morph the registered nodes.

Parameters:

collection (Collection) – The collection containing the entities. Valid entities are nodes and handles.

Examples#

Delete all mid-edge nodes in the model#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdeletemvedgenodes(collection=hm.Collection(model, ent.Node))
Delete a handle and the underlie node from an edge#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdeletemvedgenodes(collection=hm.Collection(model, ent.Handle, [13]))