[vtkusers] stream tracer / stream lines

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Fri Mar 26 09:24:27 EDT 2010


Ok this was solved.
I had to use a vtkCellDataToPointData befor inputting it into the 
vtkStreamLine.

Am 26.03.2010 11:30, schrieb Sebastian Gatzka:
> Nope, it's not working with my data.
>
> I really need this to work: *Vector Data is on structured grid cell 
> centers!!!*
>
> vtkStructuredGrid *sGrid = vtkStructuredGrid::New();
>
> (...)
>
> vtkCellCenters *gridCellCenters = vtkCellCenters::New();
> gridCellCenters->SetInput(sGrid);
>
> Vector Data is on the structured grid cell centers:
>
> sGrid->GetCellData()->SetVectors(v);
>
> (...)
>
> vtkStreamLine *streamer = vtkStreamLine::New();
> _/streamer->SetInputConnection(gridCellCenters->GetOutputPort());/_
> streamer->SetStartPosition(1,1,1);
> streamer->SetMaximumPropagationTime(200);
> streamer->SetIntegrationStepLength(.2);
> streamer->SetStepLength(.001);
> streamer->SetNumberOfThreads(1);
> streamer->SetIntegrationDirectionToForward();
> streamer->VorticityOn();
>
> vtkPolyDataMapper *streamMapper = vtkPolyDataMapper::New();
> streamMapper->SetInputConnection(streamer->GetOutputPort());
>
> vtkActor *streamActor = vtkActor::New();
> streamActor->SetMapper(streamMapper);
> streamActor->VisibilityOn();
>
> (...)
>
> ren1->AddActor(streamActor);
>
> Nothing is displayed.
>
> *How can I manage to input my data to the vtkStreamLine?!?*
>
> Am 25.03.2010 13:51, schrieb Favre Jean:
>> I believe this example will now work if you set your VTK_DATA_ROOT appropriately.
>>
>> -----------------
>> Jean M. Favre
>> Scientific Computing Research
>> Swiss National Supercomputing Center
>> CH-6828 Manno
>> Switzerland
>>    
>>
>>
>> _______________________________________________
>> Powered bywww.kitware.com
>>
>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>    
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100326/1489480d/attachment.htm>


More information about the vtkusers mailing list