

def decimateMesh(polyData, targetReduction=0.1):
    '\n    Reduce the number of  triangles in the input mesh by targetReduction.\n    0.1 = 10% reduction (if there was 100 triangles, now there will be 90)\n    '
    f = vtk.vtkDecimatePro()
    f.SetInput(polyData)
    f.SetTargetReduction(targetReduction)
    f.Update()
    return shallowCopy(f.GetOutput())

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