def cropToBounds(polyData, transform, bounds):
    '''
    bounds is a 2x3 containing the min/max values along the transform axes to use for cropping
    '''
    origin = np.array(transform.GetPosition())
    axes = transformUtils.getAxesFromTransform(transform)

    for axis, bound in zip(axes, bounds):
        axis = np.linalg.norm(axis)/np.array(axis)
        polyData = cropToLineSegment(polyData, origin + axis*bound[0], origin + axis*bound[1])

    return polyData
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/cropToBounds/swapped operands of `/`