<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi all vtk users,</DIV>
<DIV>I&nbsp;have a VRML file and i want&nbsp; to convert it into VTK files. I found a code but i have some problems with it :</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkVRMLImporter *imp1 = vtkVRMLImporter::New();<BR>imp1-&gt;SetFileName("C:/vrmlFile");<BR>imp1-&gt;Read();<BR>imp1-&gt;Update();<BR>&nbsp;<BR>vtkDataSet *pDataset1;<BR>vtkActorCollection *actors1 = imp1-&gt;GetRenderer()-&gt;GetActors();<BR>actors1-&gt;InitTraversal();<BR>pDataset1 = actors1-&gt;GetNextActor()-&gt;GetMapper()-&gt;GetInput();<BR>&nbsp;&nbsp;&nbsp; <BR>vtkGeometryFilter *geometryFilter1 = vtkGeometryFilter::New();<BR>geometryFilter1-&gt;SetInput(pDataset1);<BR>&nbsp;&nbsp;&nbsp; <BR>vtkPolyData *polyData1 = vtkPolyData::New();<BR>polyData1 = geometryFilter1-&gt;GetOutput();<BR>polyData1-&gt;Update();<BR>&nbsp;<BR>vtkDataSetWriter *writer1 = vtkDataSetWriter::New();<BR>writer1-&gt;SetInput(polyData1);<BR>writer1-&gt;SetFileName(OutputFile);<BR>writer1-&gt;SetFileTypeToASCII();<BR>&nbsp;&nbsp;&nbsp; <BR>ostream *vtkFile1 = writer1-&gt;OpenVTKFile();<BR>writer1-&gt;WriteHeader(vtkFile);<BR>writer1-&gt;WritePointData(vtkFile,
 pDataset1);<BR>writer1-&gt;CloseVTKFile(vtkFile);</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can you tell me if that code makes the conversion from VRML to VTK format?</DIV>
<DIV>If yes, can you specify me the extensions to add for "OutputFile" and "vtkFile"?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you sooooo much for your help.</DIV></td></tr></table><br>