[vtkusers] stream tracer / stream lines

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Sat Mar 27 19:14:11 EDT 2010


Yes, I am sega from the wiki.

 

I could run the code Jean M. Favre posted to the Mailing list on Thursday.

If he or you don’t mind I will put the code to the wiki-example on Monday.

 

 

 

Von: daviddoria at gmail.com [mailto:daviddoria at gmail.com] Im Auftrag von David
Doria
Gesendet: Samstag, 27. März 2010 22:15
An: Sebastian Gatzka
Betreff: Re: [vtkusers] stream tracer / stream lines

 

Sebastian,

 

Are you "Sega" on the wiki? If so, thanks for starting doing this example!

 

http://www.vtk.org/Wiki/VTK/Examples/StreamLines


I still doesn't work for me though - there are no errors, the window is just
blank.

 

Also, I converted the pointers to smart pointers - I'd definitely recommend
using smart points in your code, they have saved me many headaches.

 

Thanks,

David



On Fri, Mar 26, 2010 at 9:24 AM, Sebastian Gatzka
<sebastian.gatzka at stud.tu-darmstadt.de> wrote:

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 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
  
 
_______________________________________________
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
  


_______________________________________________
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/20100328/bf9feddf/attachment.htm>


More information about the vtkusers mailing list