<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Nur Text Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes, I am <b>sega</b> from the wiki.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I could run the code <b>Jean M. Favre</b> posted to the Mailing
list on Thursday.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If he or you don’t mind I will put the code to the wiki-example
on Monday.<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
daviddoria@gmail.com [mailto:daviddoria@gmail.com] <b>Im Auftrag von </b>David
Doria<br>
<b>Gesendet:</b> Samstag, 27. März 2010 22:15<br>
<b>An:</b> Sebastian Gatzka<br>
<b>Betreff:</b> Re: [vtkusers] stream tracer / stream lines<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>Sebastian,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Are you "Sega" on the wiki? If so, thanks for
starting doing this example!<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<p class=MsoNormal><a href="http://www.vtk.org/Wiki/VTK/Examples/StreamLines">http://www.vtk.org/Wiki/VTK/Examples/StreamLines</a><br
clear=all>
<o:p></o:p></p>
<div>
<p class=MsoNormal>I still doesn't work for me though - there are no errors,
the window is just blank.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Also, I converted the pointers to smart pointers - I'd
definitely recommend using smart points in your code, they have saved me many
headaches.<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>Thanks,<br>
<br>
David<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Fri, Mar 26, 2010 at 9:24 AM, Sebastian Gatzka <<a
href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>>
wrote:<o:p></o:p></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'>Ok
this was solved.<br>
I had to use a vtkCellDataToPointData befor inputting it into the
vtkStreamLine.<br>
</span><br>
Am 26.03.2010 11:30, schrieb Sebastian Gatzka: <o:p></o:p></p>
<div>
<div>
<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'>Nope,
it's not working with my data.<br>
<br>
I really need this to work: <b><span style='color:red'>Vector Data is on
structured grid cell centers!!!</span></b><br>
</span><span style='font-size:10.0pt;font-family:"Courier New"'><br>
vtkStructuredGrid *sGrid = vtkStructuredGrid::New();<br>
<br>
(...)<br>
<br>
vtkCellCenters *gridCellCenters = vtkCellCenters::New();<br>
gridCellCenters->SetInput(sGrid);<br>
</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'><br>
Vector Data is on the structured grid cell centers:<br>
</span><span style='font-size:10.0pt;font-family:"Courier New"'><br>
sGrid->GetCellData()->SetVectors(v);<br>
<br>
(...)<br>
<br>
vtkStreamLine *streamer = vtkStreamLine::New();<br>
<i><u>streamer->SetInputConnection(gridCellCenters->GetOutputPort());</u></i><br>
streamer->SetStartPosition(1,1,1);<br>
streamer->SetMaximumPropagationTime(200);<br>
streamer->SetIntegrationStepLength(.2);<br>
streamer->SetStepLength(.001);<br>
streamer->SetNumberOfThreads(1);<br>
streamer->SetIntegrationDirectionToForward();<br>
streamer->VorticityOn();<br>
<br>
vtkPolyDataMapper *streamMapper = vtkPolyDataMapper::New();<br>
streamMapper->SetInputConnection(streamer->GetOutputPort());<br>
<br>
vtkActor *streamActor = vtkActor::New();<br>
streamActor->SetMapper(streamMapper);<br>
streamActor->VisibilityOn();<br>
<br>
(...)<br>
<br>
ren1->AddActor(streamActor);</span><span style='font-size:10.0pt;font-family:
"Helvetica","sans-serif"'><br>
<br>
Nothing is displayed.<br>
<br>
</span><b><span style='font-family:"Helvetica","sans-serif";color:red'>How can
I manage to input my data to the vtkStreamLine?!?</span></b><span
style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'><br>
</span><br>
Am 25.03.2010 13:51, schrieb Favre Jean: <o:p></o:p></p>
<pre>I believe this example will now work if you set your VTK_DATA_ROOT appropriately.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-----------------<o:p></o:p></pre><pre>Jean M. Favre<o:p></o:p></pre><pre>Scientific Computing Research<o:p></o:p></pre><pre>Swiss National Supercomputing Center<o:p></o:p></pre><pre>CH-6828 Manno<o:p></o:p></pre><pre>Switzerland<o:p></o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Powered by <a
href="http://www.kitware.com" target="_blank">www.kitware.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Please keep messages on-topic and check the VTK FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Follow this link to subscribe/unsubscribe:<o:p></o:p></pre><pre><a
href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Powered by <a
href="http://www.kitware.com" target="_blank">www.kitware.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Please keep messages on-topic and check the VTK FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Follow this link to subscribe/unsubscribe:<o:p></o:p></pre><pre><a
href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></pre><pre> <o:p></o:p></pre></blockquote>
</div>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>