[Paraview] multiblock and volume render
Bam Ting
bampingting at gmail.com
Tue Jun 23 18:50:00 EDT 2009
Thanks Jean and Utkarsh for your input, a long night last night spent
converting from multiblock to image algorithm did the trick I had to use
UPDATE_EXTENT to get the things come out right.I prefer multiblock to image
algorithm on principle that good software doesn't do things behind your
back, and my impression is that there is alot of black magic going on nehind
the scene to make it hapen for parallel image algorithm, or perhaps that's
just my stupidity, lack of documentation or some combination thereof ;)
On Tue, Jun 23, 2009 at 12:49 PM, Jean Favre <jfavre at cscs.ch> wrote:
> >>On Mon, Jun 22, 2009 at 4:51 PM, Bam Ting <bampingting at gmail.com>
> >>wrote:
> >>
> >>>I wrote a parallel reader using multiblock dataset. How do I do a
> >>>volume
> >>>rendering?
>
> It turns out that I had to program my own filter last week, to
> re-assemble multiple grids (each of them vtkUniformGrid), into one big
> vtkImageData, to enable volume rendering. What I find interesting is
> that you say you wrote your own parallel reader. Instead of building a
> multi-block, could you not directly insert the data at the right
> sub-extents of a *single* vtkImageData?
>
> The filter I wrote did nothing more than find the global extents of each
> grid, allocating a big vtkImageData, and stuffing the sub-arrays in the
> right place. Sounds backwards and against what I suggest you should do
> yourself. My problem is that I had to deal with AMR data in memory, with
> multiple grids per level. That's also why I am not offering my filter
> which relies on the AMR internal structure to find the sub-extents.
> Would be useless to you.
>
> By the way, I might be dumb, but I was never able to use the method
> vtkImageData::CopyAndCastFrom() which I guess one should use. I wrote my
> own loops over the I,J,K indices to make my filter work.
>
> just 2 more cents
>
>
> --
> Jean
> Swiss National Supercomputing Centre
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090623/4c49fa25/attachment.htm>
More information about the ParaView
mailing list