Model.setisosurfaceparameters#

Model.setisosurfaceparameters(on, legendbased, value, addfacesabove, transparent, constantcolor, color)#

Sets the display parameters of the isosurface.

Parameters:
  • on (int) – A boolean (0 or 1) value to turn the isosurface on or off.

  • legendbased (int) – A boolean (0 or 1) value to determine if the isosurface is legend based or value based.

  • value (double) – The value of the value-based isosurface.

  • addfacesabove (int) – A boolean (0 or 1) value to add the “faces above” to the isosurface.

  • transparent (int) – A boolean (0 or 1) value to turn on transparency on the “faces below” the iso value.

  • constantcolor (int) – A boolean (0 or 1) value to display the isosurface in a user-specified.

  • color (int) – The color of the isosurface.

Example#

Display the isosurfaces with legend#
import hm
import hm.entities as ent

model = hm.Model()

model.setisosurfaceparameters(
    on=1,
    legendbased=1,
    value=0,
    addfacesabove=0,
    transparent=0,
    constantcolor=0,
    color=0,
)