Model.unmasksegments#

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

Unmasks 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 unmasked.

  • 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 unmasking of the segments.

Example#

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

model = hm.Model()

# Creating a list of integer values that contains the set IDs from which the segments need to be unmasked
set_ids_list = [5, 5]

# Creating a list of integer values that contains the element IDs corresponding to the segments
elem_ids_list = [78, 78]

# Creating a list of integer values that contains the face indices corresponding to the segments
face_ids_list = [4, 3]

model.unmasksegments(
    set_ids=set_ids_list, elem_ids=elem_ids_list, face_indices=face_ids_list
)