[vtkusers] Re: Question regarding vtkMultiBlockPLOT3DReader andalsoVTKit
Mark B Stucky
mstucky5 at cox.net
Fri Nov 3 18:50:36 EST 2006
----- Original Message -----
From: "Goodwin Lawlor" <goodwin.lawlor at ucd.ie>
To: <vtkusers at public.kitware.com>
Sent: Friday, November 03, 2006 5:48 PM
Subject: [vtkusers] Re: Question regarding vtkMultiBlockPLOT3DReader
andalsoVTKit
> Mark B Stucky wrote:
>>
>> ----- Original Message ----- From: "Goodwin Lawlor"
>> <goodwin.lawlor at ucd.ie>
>> To: <vtkusers at public.kitware.com>
>> Sent: Friday, November 03, 2006 10:12 AM
>> Subject: [vtkusers] Re: Question regarding vtkMultiBlockPLOT3DReader
>> andalso VTKit
>>
>>
>>> mstucky5 at cox.net wrote:
>>>> Question 1 : Does anyone have any sample Tcl code for displaying
>>>> multi-block plot3d files?
>>>
>>> Here's a full translation of Graphics/Testing/Cxx/TestMultiBlock.cxx to
>>> tcl for VTK5.0:
>>>
>>> http://www.bioengineering-research.com/vtk/TestMultiBlock.tcl
>>>
>
>> Removing "Update" and running with your updated VTKit-5.0.1
>> solves the problems.
>>
>> Now if I can just figure out how to extract various grid planes
>> and display the grid and/or contours etc. ...
>>
>> --Mark
>
> If you look at the example linked above, there is
>
> vtkHierarchicalDataExtractDataSets eds
> eds SetInputConnection 0 [reader GetOutputPort 0]
> eds AddDataSet 0 1
>
> There are 3 pieces in a single hierarchical level "0"... in the example
> the piece with index "1" is extracted and contoured.
>
> Try
>
> eds AddDataSet 0 0
> eds AddDataSet 0 2
>
> and have a look at the output.
>
> hth
>
> Goodwin
Thank you again !!
In this example there are 3 blocks, each with (i,j,k) dimensions
equal to (4,11,11).
If I wanted to "extract" the J=4 plane from each block and
display a contour (or just the grid), what would you suggest?
In the mean time, it looks like I've got a little "homework" to do... :)
--Mark
More information about the vtkusers
mailing list