Is &quot;v16&quot; in the code below something that produces vtkImageData or vtkPolyData? If it&#39;s vtkImageData, then you should use the vtkXMLImageDataWriter: <a href="http://www.vtk.org/doc/nightly/html/classvtkXMLImageDataWriter.html">http://www.vtk.org/doc/nightly/html/classvtkXMLImageDataWriter.html</a>, and use the extension &quot;.vti&quot;. If you want to save it in the older .vtk format, use the vtkStructuredPointsWriter: <a href="http://www.vtk.org/doc/nightly/html/classvtkStructuredPointsWriter.html">http://www.vtk.org/doc/nightly/html/classvtkStructuredPointsWriter.html</a>, and use the extension &quot;.vtk&quot;.<br>
<br>Alternatively, if you used a series of images to create your volume, you should be able to load those images directly into VolView.<br><br>If your data really is polygonal, then you&#39;ll need to resample it onto a volume (vtkImageData), and then save out that volume using one of the methods described above.<br>
<br>- Amy<br><br><div class="gmail_quote">On Mon, Mar 23, 2009 at 11:42 AM,  <span dir="ltr">&lt;<a href="mailto:nourmestiri@yahoo.fr">nourmestiri@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>
<div>Hi all vtk users.</div>
<div>I make the 3D reconstruction of a human skull and i want to use VolView to create an AVi file for this volume. The problem is that i saved my volume like this:</div>
<div>vtkXMLPolyDataWriter *vtkObject = vtkXMLPolyDataWriter::New();<br>vtkObject -&gt;SetInput(v16-&gt;GetOutput());<br>vtkObject -&gt;SetFileName(&quot;C:/Skull.vtk&quot;);</div>
<div>vtkObject -&gt;SetDataModeToAscii();<br>vtkObject -&gt;Write();<br>vtkObject -&gt;Delete();</div>
<div> </div>
<div>When i try to open &quot;Skull.vtk&quot; usin VolView, i have this error message &quot;The VTK file specified is either invalid or not a structured points data file.Of the different data types that vtk files can contain, only structured points is suitable for volume rendering.&quot;</div>

<div> </div>
<div>So, the problem is taht my volume is not saved as a structures points data file.</div>
<div> </div>
<div>Can you help me and tell me how to convert the skull volume saved as &quot;Skull.vtk&quot; into structured points data file?</div>
<div> </div>
<div>Thank yous so much</div></div></td></tr></tbody></table><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>
<br></blockquote></div><br>