Model.setcuttingplanecolor#

Model.setcuttingplanecolor(axis, mode, color)#

Sets the color of the base of the specified cutting plane.

Parameters:
  • axis (int) –

    The axis that is normal to the plane. Valid values are:

    0 - the plane with x-axis as its normal

    1 - the plane with y-axis as its normal

    2 - the plane with z-axis as its normal

  • mode (int) –

    Sets the display mode for the specified cutting plane. Valid values are:

    0 - solid color

    1 - contours

  • color (int) – The color to use when mode=0. Valid values are 1-64.

Example#

Set the cut plane with y - axis as its normal to use solid color 24#
import hm
import hm.entities as ent

model = hm.Model()

model.setcuttingplanecolor(axis=1, mode=0, color=24)