[vtkusers] FW: Rectilinear grid & StreamTube
João Cunha
jdc at lnec.pt
Thu Nov 18 07:20:05 EST 2004
Have you tried to probe (vtkProbeFilter) the temperature data using the
tube as probe ?
JDC
"ivo.leitao" wrote:
> Hi !
>
> I have a rectilinear grid with wind speed at certain
> latitudes/longitudes/days and that grid contains only vector data.
>
> I was able to build a stream tube to represent the data without
> problems, but now I need to use another file with the temperature data
> (also on a rectilinear grid) at those same latitude/longitude/days to
> colorize the stream tube. Since I do not have any scalar data on the
> initial file Ive tried to use the Merge Filter to do it but I was
> unable to colorize de data tube.
>
> I have tried to do something like this:
>
> # Streamline
>
> vtkRungeKutta4 integ
>
> vtkStreamLine streamLine
>
> streamLine SetInput [windSpeedRectilinearGridReader
> GetOutput]
>
> streamLine SetStartPosition 0 30 61
>
> streamLine SetMaximumPropagationTime 44
>
> streamLine SetStepLength 0.01
>
> streamLine SetIntegrationStepLength 0.01
>
> streamLine SetIntegrationDirectionToForward
>
> streamLine OrientationScalarsOff
>
> streamLine SpeedScalarsOff
>
> streamLine SetIntegrator integ
>
> # Streamtube
>
> vtkTubeFilter streamTube
>
> streamTube SetInput [streamLine GetOutput]
>
> streamTube SetRadius 1
>
> streamTube SetNumberOfSides 12
>
> streamTube SetVaryRadiusToVaryRadiusByVector
>
> vtkMergeFilter mergeFilter
>
> mergeFilter SetGeometry [streamTube GetOutput]
>
> mergeFilter SetScalars [temperatureRectilinearGridReader GetOutput]
>
> vtkPolyDataMapper polyDataMapper
>
> polyDataMapper SetInput [mergeFilter GetOutput]
>
> polyDataMapper ScalarVisibilityOn
>
> eval polyDataMapper SetScalarRange
> [[[[temperatureRectilinearGridReader GetOutput] GetPointData]
> GetScalars] GetRange]
>
> vtkActor actor
>
> actor SetMapper polyDataMapper
>
> It didnt work, so can anynone help me with this ? How do I colorize
> the stream tube with external scalar data ?
>
> Tnks for any answer concerning this subject
>
> Best Regars, Ivo Leitão
>
> ----------------------------------------------------------------
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://www.vtk.org/Wiki/VTK_FAQ>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
João Duarte Cunha
Investigador-Coordenador
Director do Centro da Qualidade na Construção
jdc at lnec.pt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041118/21470413/attachment.htm>
More information about the vtkusers
mailing list