Model.removesegments#

Model.removesegments(sets, elements, face_indices)#

Removes segments from one or many set-segments. A segment is defined using its corresponding set ID, element ID, and face index.

Parameters:
  • sets (hwIntList) – The ordered list of set IDs from which the segments need to be removed.

  • elements (hwIntList) – The ordered list of element IDs corresponding to the segments.

  • face_indices (hwIntList) – The ordered list of face indices corresponding to the segments.

Example#

Remove segments with face indices with IDs 4 and 3 on element ID 78 from set ID 5#
import hm
import hm.entities as ent

model = hm.Model()

model.removesegments(sets=[5, 5], elements=[78, 78], face_indices=[4, 3])