Model.setcuttingplanethickness#

Model.setcuttingplanethickness(axis, thickness)#

Sets the specified cutting plane thickness value. For trim planes, this sets the thickness of the slice through the model. For ordinary cutting planes, this sets the distance between the first and second parallel planar cuts.

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

  • thickness (double) – The new thickness of the planar slice, or the new separation between two parallel planar cuts.

Example#

Set the separation to 25.0 between two parallel cutting planes with y - axis as their normal#
import hm
import hm.entities as ent

model = hm.Model()

model.setcuttingplanethickness(axis=1, thickness=25.0)