Model.setelemparamvisualpriority#

Model.setelemparamvisualpriority(param_id, priority)#

Sets the priority for a specified element quality parameter when reviewing multiple criteria. This function is related to the element quality view mode.

Parameters:
  • param_id (int) –

    Specifies the element quality check parameter ID to update. Valid values are:

    0 - min size

    1 - max size

    2 - aspect ratio

    3 - warpage

    4 - max interior angle quad

    5 - min interior angle quad

    6 - max interior angle tria

    7 - min interior angle tria

    8 - skew

    9 - Jacobian

    10 - chordal deviation

  • priority (int) – A value from 0 to 10 specifying the order of the element quality parameter in the parameters list, defining the color of elements with multiple parameters violating the parameter thresholds for the element. The priority should be unique, as none of the parameters should have the same priority number.

Example#

Set “warpage” to priority 6#
import hm
import hm.entities as ent

model = hm.Model()

model.setelemparamvisualpriority(param_id=3, priority=6)