Model.copysegments#
- Model.copysegments(set_ids, elem_ids, face_indices, to_segment)#
Copies 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 copied.
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#
Copy segments with face indices with IDs 4 and 3 on element with ID 78 from set with ID 5 to set “set2”#import hm import hm.entities as ent model = hm.Model() model.copysegments( set_ids=[5, 5], elem_ids=[78, 78], face_indices=[4, 3], to_segment="set2" )