Model.movesegments#
- Model.movesegments(set_ids, elem_ids, face_indices, to_segment)#
Moves segments from one or many set-segments to another set-segment. A segment is defined using its corresponding set ID, element ID, and face index.
- Parameters:
set_ids (hwIntList) – The ordered list of set IDs from which the segments need to be removed.
elem_ids (hwIntList) – The ordered list of element IDs corresponding to the segments.
face_indices (hwIntList) – The ordered list of face indices corresponding to the segments.
to_segment (hwString) – The name of the destination set.
Example#
Move segments with face indices with IDs 4 and 3 on element ID 78 from set ID 5 to set “ set2 “#import hm import hm.entities as ent model = hm.Model() model.movesegments( set_ids=[5, 5], elem_ids=[78, 78], face_indices=[4, 3], to_segment="set2" )