[vtkusers] Vector data range from a Plot3D file

Dominik Szczerba domi at vision.ee.ethz.ch
Mon Apr 23 02:48:42 EDT 2007


On Sunday 22 April 2007 23:18, Shriram N wrote:
> Hi all!
>
> I have two questions!
>
> [1] How do I find out the range of the vector data in a Plot3D file?
> I'm trying to create a CFD data visualizer using C# and the .net
> wrappers for VTK.
> I found a GetScalarRange() method that I used to set the lookup table for
> coloring some streamlines by scalar value.
>
> this.lut.SetTableRange(Dataset.Plot3DReader.GetOutput().GetScalarRange());
>
> I have set the vector function to be be used using
> Plot3DReader.SetVectorFunctionNumber(200);
>
> I want to be able to color the streamlines by vector value.

you need to pass -1 as an arg to GetRange to have the vector magnitude

>
> [2] How does one find the dimensions of a structured grid extracted using
> vtkPlot3DReader?
> I found that 'Dataset.Plot3DReader.GetOutput().GetDimensions()' does not
> return the correct value.

use GetBounds()

Dominik


>
> Any help would be greatly appreciated.
>
> -shriram

-- 
Dominik Szczerba, PhD
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list