

def removeNonFinitePoints(polyData, arrayName='Points'):
    polyData = shallowCopy(polyData)
    labelNonFinitePoints(polyData, arrayName)
    return thresholdPoints(polyData, 'is_nonfinite', [0, 0])

dataset/ETHPy150Open RobotLocomotion/director/src/python/director/filterUtils.py removeNonFinitePoints/original