Model.masksegments#

Model.masksegments(set_ids, elem_ids, face_indices=hwIntList(), consider_elems=False)#

Masks segments. 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 masked.

  • 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.

  • consider_elems (bool) – Flag to consider underlying structural elements during masking of the segments. Valid values are True or False.

Example#

Mask 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.marksegments(set_ids=[5, 5],elem_ids=[78, 78],face_indices=[4, 3])