Model.setcuttingplaneactive#

Model.setcuttingplaneactive(axis, state)#

Turns the specified cutting plane on/off.

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

  • state (int) –

    0 - off

    1 - on

Example#

Turn off the cut plane with y - axis as its normal#
import hm
import hm.entities as ent

model = hm.Model()

model.setcuttingplaneactive(axis=1, state=0)