<div dir="ltr"><div>Dear VTK users.<br><br></div><div>Hello, I'm using the kinect for scan vegetation and currently I'm working with kinfu_remake, however this code export 3D models to a VRML file for the Visualization Toolkit, I've never work with VTK and is very much easier work with a .ply format or .pcd.<br></div><div>So, I'm trying to export this VRML file to a VTK ASCII format and then with PCL to a .ply. I'm follow the wiki examples but I'm getting errors during the convertion, this my code:<br></div><div><br>int main(int argc, char *argv[ ])<br>{<br>  if(argc < 3)<br>    {<br>    std::cerr << "Required arguments: input.vrml output.vtk" << std::endl;<br>    return EXIT_FAILURE;<br>    }<br><br>  std::string inputFileName = argv[1];<br>  std::string outputFileName = argv[2];<br><br>// Read the input <br>  vtkSmartPointer<vtkXMLPolyDataReader> reader = vtkSmartPointer<vtkXMLPolyDataReader>::New();<br>  reader->SetFileName(inputFileName.c_str());<br>  reader->Update();<br><br>// Export file<br>  vtkSmartPointer<vtkPolyDataWriter> writer = vtkSmartPointer<vtkPolyDataWriter>::New();  <br>  writer->SetFileName(outputFileName.c_str());  <br>  writer->SetFileTypeToASCII();<br>  writer->SetInputConnection(reader->GetOutputPort());  <br>  writer->Update();<br><br>  return EXIT_SUCCESS;<br>}<br><br></div><div>So, if somebody can tell me what I'm doing wrong and give some tips or give me a hand, that would be great<br><br></div><div>Thanks, in advance<br></div><div>José Soto<br></div></div>