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
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQFollow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers