Thanks again for your reply.<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
> I am new to vtk, and am guessing that what I want to do is not a<br>
> standard vtk use case.<br>
<br>
</div>I'm not sure such a thing exists. I always seem to find corner<br>
cases too.<br></blockquote><div> </div><div>Glad I'm not the only one! </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> While the vti files are used for the<br>
> purpose of later visualization (eg, in ParaView) of simulation<br>
> data, what I want to do here is to just get data out of the vti<br>
> to feed into another simulation.<br>
<br>
</div>Maybe you can set up your pipeline like :<br>
<br>
reader -> clip<br>
<br>
where clip is an instance of vtkImageClip :<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkImageClip.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageClip.html</a><br>
<br>
and you can clip->SetOutputWholeExtent( x1,x2,y1,y2,z1,z2);<br>
clip->Update(); when your 'other' simulation leaves the previous<br>
extent.<br>
<br>
<br></blockquote><div>I will look into this. However, I hope I didn't muddy the waters by mentioning the two simulations. To simplify and try again: </div><div><br></div><div>I think all that I need to understand is how to use a reader to read a data array in blocks - one block at a time. You mentioned in your first reply:</div>
<div><br></div><div>><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px">The *.vti reader, vtkXMLImageDataReader, can read the image one </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px">requested piece at a time</span></div>
</div><div class="gmail_quote"><font color="#222222" face="arial, sans-serif"><br></font></div><div class="gmail_quote"><font color="#222222" face="arial, sans-serif">That sounds exactly like what I need to know. Eg, if a DataArray in the file has 10,000 points, I want to read 0-999, 1000-1999, etc. I started to look at the source earlier, and will pick it up again tomorrow. In the mean time, any more tips or code samples would be appreciated.<br>
</font><div><br></div><div><br></div></div><br><br clear="all"><div><br></div>-- <br>Grant McAuley<div>Postdoctoral Fellow</div><div>Radiation Research Labs</div><div>Radiation Medicine</div><div>Loma Linda University</div>
<div><a href="tel:%28909%29%20558-1000%20Ext%2085173" value="+19095581000" target="_blank">(909) 558-1000 Ext 85173</a></div>
<div><a href="mailto:gmcauley@llu.edu" target="_blank">gmcauley@llu.edu</a></div>
</div>