<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>Hi,<BR>
&nbsp;<BR>
When I try to use&nbsp; <STRONG><STRONG><STRONG><STRONG>vtkStreamTracer</STRONG></STRONG></STRONG></STRONG> the Streamlines do not go all the way to the edge of the object.&nbsp; It stops a bit short, giving the impression that there&nbsp;are no Streamlines there.&nbsp;&nbsp; I get the streamer from an vtkExtractGrid (igrid below).&nbsp; After the Streamline I use a vtkPolyDataMapper (mapper, below) and a vtkActor (called actor down below).&nbsp; The pp_ below has a list of processor data. <BR>
&nbsp;<BR>
&nbsp;I have looked around quite a bit and cannot find a solution.&nbsp; <BR>
<FONT color=#008000 size=2><FONT color=#008000 size=2></FONT></FONT>&nbsp;<BR>
<FONT color=#008000 size=2><FONT color=#008000 size=2>&nbsp;<BR></FONT></FONT><FONT size=2>
vtkSmartPointer&lt;vtkExtractGrid&gt; igrid;<BR>
igrid.TakeReference(vtkExtractGrid::New()); <BR>
<BR>
igrid-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort()); </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2><BR></FONT></FONT><FONT size=2>
igrid-&gt;SetSampleRate(skip+1, 1, skip+1);</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2><BR></FONT></FONT><FONT size=2>
igrid-&gt;IncludeBoundaryOn();<BR>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> <BR></FONT></FONT><FONT size=2>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// streamer <BR></FONT></FONT><FONT size=2>
vtkSmartPointer&lt;vtkStreamTracer&gt; streamer; <BR>
streamer.TakeReference(vtkStreamTracer::New());<BR>
streamer-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort()); <BR>
streamer-&gt;SetSource(igrid-&gt;GetOutput());<BR>
streamer-&gt;SetMaximumPropagation(2,pp_-&gt;nj(i));<BR>
<BR>
streamer-&gt;SetMinimumIntegrationStep(2,0.1);<BR>
streamer-&gt;SetMaximumIntegrationStep(2,1.0);<BR>
streamer-&gt;SetInitialIntegrationStep(2, 0.5);<BR>
<BR>
streamer-&gt;SetIntegratorTypeToRungeKutta45();<BR>
streamer-&gt;SetMaximumError(1.0e-8); <BR>
streamer-&gt;SetIntegrationDirectionToBoth();<BR>
streamer-&gt;ComputeVorticityOff();<BR>
 <BR>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// mapper<BR></FONT></FONT><FONT size=2>
vtkSmartPointer&lt;vtkPolyDataMapper&gt; mapper;<BR>
mapper.TakeReference(vtkPolyDataMapper::New());<BR>
mapper-&gt;SetInputConnection(streamer-&gt;GetOutputPort()); <BR>
mapper-&gt;ScalarVisibilityOn(); <BR>
mapper-&gt;ImmediateModeRenderingOn();<BR>
mappers_.push_back(mapper);<BR>
streamline_mappers_.push_back(mapper);<BR>
&nbsp;<BR>
<BR>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// add actor<BR></FONT></FONT><FONT size=2>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT><FONT size=2> rot=rot_beg;rot&lt;rot_end;++rot) <BR>
{<BR>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp; double</FONT></FONT><FONT size=2> rotate = rot*360.0/nblades; <BR>
&nbsp;&nbsp; vtkSmartPointer&lt;vtkActor&gt; actor;<BR>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp; if</FONT></FONT><FONT size=2>(!rot)<BR>
&nbsp;&nbsp; {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor.TakeReference(vtkActor::New()); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;SetMapper(mapper); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;RotateZ(rotate); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;SetVisibility(0);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ren_-&gt;AddActor(actor);<BR>
&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp; streamlines_.push_back(actor);<BR>
}<BR>
&nbsp;<BR></FONT>
&nbsp;<BR>
Thanks!<BR>
&nbsp;<BR>
Jim Shain<BR>
&nbsp;<BR>                                               <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='http://clk.atdmt.com/GBL/go/171222985/direct/01/' target='_new'>Sign up now.</a></body>
</html>