<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello vtkuseres,<BR>
&nbsp;<BR>
<DIV id=result_box dir=ltr>I would like to create streamlines with real time&nbsp;generated&nbsp;data. In the examples the data are&nbsp;in the&nbsp;files. Someone could tell me how these data are formatted inside these files.&nbsp;How&nbsp;could I&nbsp;do to read values without using scalar and vector files,&nbsp;reading real time generated data?</DIV>
<BR>This is the example:<BR>
&nbsp;<BR>
vtkPLOT3DReader pl3d<BR>&nbsp;&nbsp;&nbsp; pl3d SetXYZFileName "$VTK_DATA_ROOT/Data/combxyz.bin"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----- file<BR>&nbsp;&nbsp;&nbsp; pl3d SetQFileName "$VTK_DATA_ROOT/Data/combq.bin"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----- file&nbsp;<BR>&nbsp;&nbsp;&nbsp; pl3d SetScalarFunctionNumber 100<BR>&nbsp;&nbsp;&nbsp; pl3d SetVectorFunctionNumber 202<BR>&nbsp;&nbsp;&nbsp; pl3d Update<BR>
# The line widget is used seed the streamlines.<BR>#<BR>vtkLineWidget lineWidget<BR>vtkPolyData seeds<BR>lineWidget SetInput [pl3d GetOutput]<BR>lineWidget SetAlignToYAxis<BR>lineWidget PlaceWidget<BR>lineWidget GetPolyData seeds<BR>lineWidget ClampToBoundsOn<BR>
vtkRungeKutta4 rk4<BR>vtkStreamLine streamer<BR>&nbsp;&nbsp;&nbsp; streamer SetInputConnection [pl3d GetOutputPort]<BR>&nbsp;&nbsp;&nbsp; streamer SetSource seeds<BR>&nbsp;&nbsp;&nbsp; streamer SetMaximumPropagationTime 100<BR>&nbsp;&nbsp;&nbsp; streamer SetIntegrationStepLength .2<BR>&nbsp;&nbsp;&nbsp; streamer SetStepLength .001<BR>&nbsp;&nbsp;&nbsp; streamer SetNumberOfThreads 1<BR>&nbsp;&nbsp;&nbsp; streamer SetIntegrationDirectionToForward<BR>&nbsp;&nbsp;&nbsp; streamer VorticityOn<BR>&nbsp;&nbsp;&nbsp; streamer SetIntegrator rk4<BR>
&nbsp;<BR>
&nbsp;<BR>
B. Regards,<BR>
&nbsp;<BR>
Pompeu<BR><br /><hr />Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! <a href='http://www.livemaps.com.br/index.aspx?tr=true' target='_new'>Experimente já!</a></body>
</html>