[vtkusers] Contour of 3D Exodus Data
Slaughter, Andrew E
andrew.slaughter at inl.gov
Wed Dec 2 23:41:14 EST 2015
Jean,
Thank you so much for this information, I hadn't run across vtkExtractBlock
until now; it opens up so many possibilities for the work I am doing. I was
able to do want I needed with contours and much more!
Peace,
Andrew
On Wed, Dec 2, 2015 at 12:10 AM, Favre Jean <jfavre at cscs.ch> wrote:
>
> >> I am working on a data set that has multiple subdomains, ...
>
> this is a classic textbook problem.
>
> I would use a vtkExtractBlock(), and a vtkCompositeDataGeometryFilter() to
> pull all the pieces together.
>
> blocks = vtk.vtkExtractBlock()
> blocks.SetInputConnection(reader.GetOutputPort())
> blocks.AddIndex(2) # first block is index 2 (starting at 0 for the
> multiblock dataset container)
> blocks.AddIndex(3) # second block
>
> contours.SetInputConnection(blocks.GetOutputPort())
>
> compGF = vtk.vtkCompositeDataGeometryFilter()
> compGF.SetInputConnection(contours.GetOutputPort())
>
> contMapper.SetInputConnection(compGF.GetOutputPort())
>
> Jean/CSCS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151202/4705a962/attachment.html>
More information about the vtkusers
mailing list