<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Paul,</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I checked the VTK User’s Guide, but couldn’t partition my datasets with vtkPolyDataStreamer.</div><div class=""><br class=""></div><div class="">Today I found the similar thread on the mailing list.</div><div class=""><<a href="http://public.kitware.com/pipermail/vtkusers/2009-December/056214.html" class="">http://public.kitware.com/pipermail/vtkusers/2009-December/056214.html</a>></div><div class="">It says the distributed data filter and parallel writer are used for the purpose.</div><div class=""><br class=""></div><div class="">So I tried the sample python on 2 CPUs:</div><div class=""><br class=""></div><div class="">    import vtk</div><div class=""><br class=""></div><div class="">    source = vtk.vtkPointSource()</div><div class="">    source.SetCenter((0.0, 0.0, 0.0))</div><div class="">    source.SetNumberOfPoints(1000000)</div><div class="">    source.SetRadius(1.0)</div><div class="">    source.Update()</div><div class=""><br class=""></div><div class="">    d3 = vtk.vtkDistributedDataFilter()</div><div class="">    d3.SetInputData(source.GetOutput())</div><div class="">    d3.SetBoundaryMode(0)</div><div class="">    d3.Update()</div><div class=""><br class=""></div><div class="">    writer = vtk.vtkXMLPUnstructuredGridWriter()</div><div class="">    writer.SetInputData(d3.GetOutput())</div><div class="">    writer.SetFileName(’test.pvtu’)</div><div class="">    writer.SetNumberOfPieces(2)</div><div class="">    writer.WriteSummaryFileOn()</div><div class="">    writer.SetStartPiece(0)</div><div class="">    writer.SetEndPiece(1)</div><div class="">    writer.Write()</div><div class=""><br class=""></div><div class="">…but the exported *.vtu-s are exactly same. Both have 1,000,000 points, and not partitioned.</div><div class=""><br class=""></div><div class="">Maybe the usage of the vtkDistributedDataFilter is wrong.</div><div class="">How to pass the partitioned data to the parallel writer?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Magician</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 8, 2016, at 00:37, Paul Korir <<a href="mailto:pkorir@ebi.ac.uk" class="">pkorir@ebi.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hi Magician,</p><p class="">You could have a look at the Visualization Toolkit 4th Ed. pg. 96
      and pg. 389.</p><p class="">It talks about using streamers such as vtkPolyDataStreamer
(<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/release/7.0/html/classvtkPolyDataStreamer.html#details">http://www.vtk.org/doc/release/7.0/html/classvtkPolyDataStreamer.html#details</a>).</p><p class="">HTH,</p><p class="">Paul<br class="">
    </p>
    <br class="">
    <div class="moz-cite-prefix">On 05/11/2016 13:56, Magician wrote:<br class="">
    </div>
    <blockquote cite="mid:0FED05ED-4466-458A-8194-D2F08A2B3EFC@mac.com" type="cite" class="">
      <pre wrap="" class="">Hi all,


I'm using VTK 7.1.0 (pvpython with ParaView 5.2.0 RC3)
for processing VTK PolyData.
The data consists of billions of point coordinates, point cells and point values.

I'd like to partition the data for multi-processing,
but there are not enough informations.
Now I'm splitting data and writing *.pvtp files manually.

Is there a easy way to convert *.vtp to *.pvtp includes several partitions,
or extract data by rectangular (or other geometric) regions?


Magician
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com/">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br class="">
    <div class="moz-signature">-- <br class="">
      <strong class="">Paul
        x4422</strong></div>
  </div>

</div></blockquote></div><br class=""></body></html>