<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Does anyone use the vtkDistributedDataFilter?</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 19, 2016, at 18:16, Magician <<a href="mailto:f_magician@mac.com" class="">f_magician@mac.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">I posted the message about partitioning datasets.</div><div class=""><<a href="http://public.kitware.com/pipermail/vtkusers/2016-November/097123.html" class="">http://public.kitware.com/pipermail/vtkusers/2016-November/097123.html</a>></div><div class=""><br class=""></div><div class="">I still trying vtk.vtkDistributedDataFilter(), but <span style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre-wrap;" class="">the exported data aren’t partitioned.</span></span></div><div class="">My VTK version is 7.1.0 (pvpython with ParaView 5.2.0 RC3) and executing on 2 CPUs.</div><div class=""><br class=""></div><div class="">Here is the sample code:</div><div class=""><br class=""></div><div class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""> import vtk
source = vtk.vtkPointSource()
source.SetCenter((0.0, 0.0, 0.0))
source.SetNumberOfPoints(1000000)
source.SetRadius(1.0)
source.Update()
d3 = vtk.vtkDistributedDataFilter()
d3.SetInputData(source.GetOutput())
d3.SetBoundaryMode(0)
d3.Update()
writer = vtk.vtkXMLPUnstructuredGridWriter()
writer.SetInputData(d3.GetOutput())
writer.SetFileName(’test.pvtu’)
writer.SetNumberOfPieces(2)
writer.WriteSummaryFileOn()
writer.SetStartPiece(0)
writer.SetEndPiece(1)
writer.Write()
</pre></div><div class="">How to partition data?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Magician</div></div></div></blockquote></div><br class=""></body></html>