[vtkusers] vtkXMLPPolyDataWriter usage question

Johnny Devaprasad johnnydevaprasad at gmail.com
Fri Nov 4 13:05:23 EST 2005


Hi,
Is there a way to split one .vtp file into many pieces...??
vtkXMLPPolyDataWriter.SetNumberOfPieces() does not split my .vtp file.
Following is the code snippet :

writer = vtk.vtkXMLPDataSetWriter()
writer.SetFileName('polydata.pvtp')
writer.SetInput(polydata)
writer.SetDataModeToAscii()
writer.SetNumberOfPieces(3)
writer.SetStartPiece(0)
writer.SetEndPiece(2)
writer.Write()

This produces the metafile (polydata.pvtp) and three piecefiles with .vtp
extensions but the entire polydata is being written into each file. Am I
missing something? How can I divide the data into pieces and then write each
piece to corresponding file ( i assumed that this writer would that job for
me?? )

Thank you in advance for any response.
-johnny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051104/cdce5272/attachment.htm>


More information about the vtkusers mailing list