On Thu, Sep 9, 2010 at 4:46 AM, Blaise Bourdin <span dir="ltr"><<a href="mailto:bourdin@lsu.edu">bourdin@lsu.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Imtiaz Hossain from the LSU visualization center and I would be interested in reimplementing the vtk viewer (at least for da and Vec obtained from a da) using libvtk. As far as I can see, the current implementation only does legacy text format which is not really amenable to large 3d models and does not support reading from a vtk file.<br>

<br>
Would you welcome a reimplementation of the vtk viewer (I know that it means adding another dependency / library, but this could easily be made optional, just like the hdf5 reader / writer)<br>
Is there any documentation on adding a viewer format? For what I can see, the load is implemented in src/vec/vec/utils/vecio.c and the writers are within each vector implementation. It looks like the hdf5 reader and writers were reimplemented recently, so we would probably try to follow their structure as closely as possible.<br>
</blockquote><div><br></div><div>This sounds good. The writers are in the Vec impls, which is probably not optimal since VecGetArray() is</div><div>a nice interface. I think for modern viewers of Vec, I would put the whole thing in viewer/impls/vtk, since</div>
<div>all the data you need from Vec and DA is public. No need to stick stuff underneath. Then you just change</div><div>VecView() to dispatch to the correct method, and that dispatch has an #ifdef from configure.</div><div>
<br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Regards,<br>
Blaise<br>
<font color="#888888"><br>
--<br>
Department of Mathematics and Center for Computation & Technology<br>
Louisiana State University, Baton Rouge, LA 70803, USA<br>
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 <a href="http://www.math.lsu.edu/~bourdin" target="_blank">http://www.math.lsu.edu/~bourdin</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>