[vtkusers] Does vtk StreamLine/StreamTracer dislike vtkVoxel's?
berk.geveci at gmail.com
Tue Jul 26 10:13:06 EDT 2005
Streamline should work fine with voxels. Can you post your data?
On 7/19/05, Peter Schmitt <pschmitt at gmail.com> wrote:
> Hey vtkusers,
> I have an unstructured grid consisting of many adjacent vtkVoxels
> (cubes) with 8 vertices with one scalar and one vector corresponding
> to every vertex.
> In both Paraview and a custom VTK app, I can visualize a vectorfield.
> Here's a snapshot of a sampling of the vectors:
> However, I am having problems getting streamlines working in both
> paraview and a custom vtk app: vtkStreamTracer and vtkStreamLine
> create no streamlines whatsoever.
> I can compile my code without errors or warnings, but no streamlines
> are displayed to the screen. On execution, I get the following
> Warning: In /software/linux-sles8-ia32/vizdev/vtk-nvgl-mpi-4.4.2-gcc-r1/src/Graphics/vtkRibbonFilter.cxx,
> line 93
> vtkRibbonFilter (0x8112c28): No input data!
> I have tried variations of all the vtkStreamTracer and vtkStreamLine
> examples and tests (sometimes using vtkRibbonFilter and sometimes
> vtkTubeFilter), but the same thing happens: no streamlines! The
> program loads up very quickly (as in it doesn't seem to be doing much
> computation as I would expect to create streamlines). Am I having
> difficulties because I store my data as voxels of an unstructured
> grid? (I don't think so since the vtkStream* classes take vtkDataSet
> as input).
> //start snip
> vtkUnstructuredGrid* ugrid = vtkUnstructuredGrid::New()
> //load data into vtkUnstrucutredGrid...
> vtkRungeKutta4* integ = vtkRungeKutta4::New();
> vtkPointSource* seeds = vtkPointSource::New();
> seeds->SetCenter(140.784, 57.6672, -2.98392); //note: this point
> is in my dataset!
> vtkStreamTracer* streamer = vtkStreamTracer::New();
> streamer->SetMaximumPropagation(0, 9E8);
> //streamer->SetMaximumPropagation(1, 9E8);
> streamer->SetMinimumIntegrationStep(1, 0.1);
> streamer->SetMaximumIntegrationStep(2, 0.2);
> vtkRibbonFilter* rf = vtkRibbonFilter::New();
> vtkPolyDataMapper* mapStream = vtkPolyDataMapper::New();
> vtkActor* streamActor = vtkActor::New();
> //stop snip
> 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:
More information about the vtkusers