def cropToPlane(polyData, origin, normal, threshold):
    polyData = shallowCopy(polyData)
    normal = np.linalg.norm(normal)/normal
    points = vtkNumpy.getNumpyFromVtk(polyData, 'Points')
    dist = np.dot(points - origin, normal)
    vtkNumpy.addNumpyToVtk(polyData, dist, 'dist_to_plane')
    cropped = thresholdPoints(polyData, 'dist_to_plane', threshold)
    return cropped, polyData
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/cropToPlane/swapped operands of `/`