I think what you get now is only ONE part of the image.<br><br>The problem is that you get only one actor <br>at line &quot;pDataset = actors.GetNextActor().GetMapper().GetInput()&quot;.<br><br>Hope that helps.<br><br>Baliki<br>
<br><br><br><div class="gmail_quote">2009/11/24 RimAY <span dir="ltr">&lt;<a href="mailto:rim.ayari@gmail.com">rim.ayari@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Dear All ,<br>
<br>
I try to convert a vrml file into vtk file, my problem is that i got only a<br>
part of the image in the vtk format.<br>
this is the code i used:<br>
<br>
target = vtkVRMLImporter()<br>
target.SetFileName(&quot;WRL path&quot;)<br>
target.Read()<br>
<br>
actors = vtkActorCollection()<br>
actors = target.GetRenderer().GetActors()<br>
actors.InitTraversal()<br>
<br>
pDataset = actors.GetNextActor().GetMapper().GetInput()<br>
<br>
geometryFilter = vtkGeometryFilter()<br>
geometryFilter.SetInput(pDataset)<br>
<br>
filter1 = vtkImageDataGeometryFilter()<br>
filter1.SetInput(pDataset)<br>
<br>
data = vtkPolyData()<br>
data = geometryFilter.GetOutput()<br>
data.Update()<br>
<br>
<br>
writer = vtkXMLPolyDataWriter()<br>
writer.SetFileName(&quot;vtk path&quot;)<br>
writer.SetInput(data)<br>
writer.Write()<br>
<br>
print &quot;fichier crée&quot;<br>
<br>
Any help will be very appreciated<br>
<br>
Best Regards<br>
--<br>
View this message in context: <a href="http://old.nabble.com/Problem-with-conversion-from-VRML-into-VTK-file-tp26493224p26493224.html" target="_blank">http://old.nabble.com/Problem-with-conversion-from-VRML-into-VTK-file-tp26493224p26493224.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>