Take a look at vtkImageImport.&nbsp; It&#39;s designed to do what you want.&nbsp; <br><br><div class="gmail_quote">On Jan 23, 2008 6:17 PM, Wesley Smith &lt;<a href="mailto:wesley.hoke@gmail.com">wesley.hoke@gmail.com</a>&gt; wrote:
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I&#39;m just starting out using VTK and have been trying to figure out how<br>to pass in volume data held in application memory (but not in any VTK
<br>class) into the VTK rendering system. &nbsp;From what I&#39;ve seen, all of the<br>examples use &quot;Readers&quot; which only look for data from file. &nbsp;Is there<br>no such class that I can pass say a pointer along with the memory
<br>layout to? &nbsp;To make things more concrete, I&#39;m using a library to load<br>VASP files. &nbsp;From these, I get a buffer of data about 85x54x44 of<br>scalar values. &nbsp;What&#39;s the best methodology for getting this data into
<br>VTK? &nbsp;Perusing the web, I&#39;ve only seen examples that require<br>subclassing a vtkReader of some sort. &nbsp;Is this the only way?<br>(<a href="http://www.comp.leeds.ac.uk/drm/ExampleVolRender.cxx" target="_blank">http://www.comp.leeds.ac.uk/drm/ExampleVolRender.cxx
</a>)<br><br>thanks,<br>wes<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><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><br clear="all"><br>-- <br>Sometimes it&#39;s hard to tell the dancer from the dance - Corwin in CoC