<DIV>I have succeed in reading ply file.But when the ply file is very big such as 2M,it can't work and when I run the program,it says that can't allocate some elements of size.Can you help me?</DIV>
<DIV> </DIV>
<DIV>Here is the reading code:</DIV>
<DIV> </DIV>
<DIV> if(argc != 2)<BR> {<BR> std::cout << "Usage: " << argv[0] << " Filename(.ply)" << std::endl;<BR> return EXIT_FAILURE;<BR> }<BR> <BR> std::string inputFilename = argv[1];<BR> <BR> vtkSmartPointer<vtkPLYReader> reader =<BR> vtkSmartPointer<vtkPLYReader>::New();<BR> reader->SetFileName ( inputFilename.c_str() );</DIV>
<DIV> <BR> vtkSmartPointer<vtkPolyDataMapper> mapper =<BR> vtkSmartPointer<vtkPolyDataMapper>::New();<BR> mapper->SetInputConnection(reader->GetOutputPort());</DIV>