[vtkusers] Contour of 3D Exodus Data
Slaughter, Andrew E
andrew.slaughter at inl.gov
Tue Dec 1 12:52:03 EST 2015
Thank you, this fixed by problem. I have another related question.
I am working on a data set that has multiple subdomains, so
"reader.GetOutput().GetBlock(0).GetBlock(1)" also exists. Do I need to
create two vtkContourFilters to show both subdomains, or is it possible to
setup two input ports on the vtkContourFilter. The latter doesn't seem to
work (I can send a script if this should work).
Thanks again,
Andrew
On Tue, Dec 1, 2015 at 12:50 AM, Favre Jean <jfavre at cscs.ch> wrote:
>
> There are a couple of issues with your example.
>
> The Exodus reader creates a multi-block dataset, whose first block is
> itself a multi-block dataset (You can see that in ParaView's Information
> tab).
>
> thus, your input should be:
>
> contours.SetInputData(reader.GetOutput().GetBlock(0).GetBlock(0))
>
> second, you need to tell contours which variable to use:
>
> contours.SetInputArrayToProcess(0, 0, 0, 0, "u")
>
> -----------------
> Jean/CSCS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151201/39216cb3/attachment.html>
More information about the vtkusers
mailing list