Model.segmentsetremoveelemsusingnodes#
- Model.segmentsetremoveelemsusingnodes(name, elem_collection, node_collection)#
Removes elements from a segment set using face nodes. If all elements are removed, the empty segment set still exists.
- Parameters:
name (hwString) – The name of the segment set to update.
elem_collection (Collection) – The collection containing the element entities to remove.
node_collection (Collection) – The collection containing the node entities that define the faces of the elements.
Example#
Remove elements with IDs 100 and 101 from the segment set “ test “ , for the specified face defined by the nodes with IDs 201 and 202#import hm import hm.entities as ent model = hm.Model() model.segmentsetremoveelemsusingnodes( name="test", elem_collection=hm.Collection(model, ent.Element, [100, 101]), node_collection=hm.Collection(model, ent.Node, [201, 202]), )