Model.visualizemode#

Model.visualizemode(hiddenline, fillmode, meshmode, plot)#

Sets the parameters for visualization mode. This function is valid only after the system has entered into visualization mode.

Parameters:
  • hiddenline (int) – Set to 1 for hidden line, 0 for wire frame.

  • fillmode (int) – Set to -2 for contours, -1 for element color, or 0-15 for constant color.

  • meshmode (int) – Set to -2 for contours, -1 for element color, or 0-15 for constant color.

  • plot (int) – Set to 1 to re-plot the screen after this function is executed, otherwise set to 0.

Example#

Set the visualization parameters into wire frame view , with * fillmode * and * meshmode * from contours and re - plot the screen after this function is executed#
import hm
import hm.entities as ent

model = hm.Model()

model.visualizemode(hiddenline=0, fillmode=-2, meshmode=-2, plot=1)