[vtkusers] Re: Question regarding vtkMultiBlockPLOT3DReader andalso VTKit
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Fri Nov 3 17:48:35 EST 2006
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
More information about the vtkusers
mailing list