[vtkusers] Writing a PVTP file
Randall Hand
randall.hand at gmail.com
Mon Jan 16 14:17:57 EST 2006
I have a 50 million triangle PLY File written to disk that I would like to
convert to a Parallel VTP (PVTP) file for multithreaded rendering with
ParaView. I tried simply connecting a vtkPLYReader to a
vtkXMLPPolyDataWriter, but it doesn't seem to have worked. it's been
running for 45 minutes and I have a "city_0.vtp" going to disk, slowly.
Is this the correct method, or am I missing something?
=== Source
#include <stdio.h>
#include <vtkPLYReader.h>
#include <vtkXMLPPolyDataWriter.h>
int main (int argc, char *argv[]) {
printf("Reading \"%s\"...\n", argv[1]);
vtkPLYReader *reader = vtkPLYReader::New();
reader->SetFileName(argv[1]);
reader->Update();
printf("Writing \"%s\"...\n", argv[2]);
vtkXMLPPolyDataWriter *writer = vtkXMLPPolyDataWriter::New();
writer->SetInput(reader->GetOutput());
writer->SetFileName(argv[2]);
writer->SetNumberOfPieces(24);
writer->WriteSummaryFileOn();
writer->Write();
}
====== End source
--
Randall Hand
Visualization Scientist,
ERDC-MSRC Vicksburg, MS
Homepage: http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060116/7bfcfba3/attachment.htm>
More information about the vtkusers
mailing list