

def cleanPolyData(polyData):
    clean = vtk.vtkCleanPolyData()
    clean.SetInput(polyData)
    clean.Update()
    return shallowCopy(clean.GetOutput())

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