<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
I've enclosed&nbsp;an image.&nbsp;&nbsp;<BR>
&nbsp;<BR>
The SampleRate is&nbsp;&nbsp; <FONT size=2 face="Courier New"><FONT size=2 face="Courier New">igrid</FONT>-&gt;SetSampleRate(4, 1, 4);&nbsp;&nbsp; </FONT><BR>
<FONT size=2></FONT>&nbsp;<BR>
<FONT size=2>A smaller SampleRate&nbsp;has more Streamlines but the skip over the pieces is still there (it's just a bit harder to see).&nbsp; Larger SampleRates obviously have fewer lines but the skip is still there.</FONT><BR>
&nbsp;<BR>
I do not see how to get the dataset out of&nbsp;vtkStreamTracer (which is streamer down below).&nbsp;&nbsp; PrintSelf?&nbsp; Print?&nbsp; I have tried several different ways and could not get that to work.&nbsp; How can I do that?<BR>
&nbsp;<BR>
Thanks!<BR>
&nbsp;<BR>
Jim<BR>
<FONT size=2></FONT>&nbsp;<BR>
<FONT size=2>&nbsp;<BR>
</FONT><BR>&nbsp;<BR>&gt; Date: Fri, 16 Oct 2009 08:52:41 -0400<BR>&gt; Subject: Re: [vtkusers] vtkStreamTracer does not fill area<BR>&gt; From: berk.geveci@kitware.com<BR>&gt; To: jimshain@hotmail.com<BR>&gt; CC: vtkusers@vtk.org<BR>&gt; <BR>&gt; Can you post an example dataset and an image? (or e-mail them to me directly)<BR>&gt; <BR>&gt; 2009/10/15 Jim Shain &lt;jimshain@hotmail.com&gt;:<BR>&gt; &gt;<BR>&gt; &gt; Hi,<BR>&gt; &gt;<BR>&gt; &gt; When I try to use&nbsp; vtkStreamTracer the Streamlines do not go all the way to<BR>&gt; &gt; the edge of the object.&nbsp; It stops a bit short, giving the impression that<BR>&gt; &gt; there&nbsp;are no Streamlines there.&nbsp;&nbsp; I get the streamer from an vtkExtractGrid<BR>&gt; &gt; (igrid below).&nbsp; After the Streamline I use a vtkPolyDataMapper (mapper,<BR>&gt; &gt; below) and a vtkActor (called actor down below).&nbsp; The pp_ below has a list<BR>&gt; &gt; of processor data.<BR>&gt; &gt;<BR>&gt; &gt; &nbsp;I have looked around quite a bit and cannot find a solution.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; vtkSmartPointer&lt;vtkExtractGrid&gt; igrid;<BR>&gt; &gt; igrid.TakeReference(vtkExtractGrid::New());<BR>&gt; &gt;<BR>&gt; &gt; igrid-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort());<BR>&gt; &gt; igrid-&gt;SetSampleRate(skip+1, 1, skip+1);<BR>&gt; &gt; igrid-&gt;IncludeBoundaryOn();<BR>&gt; &gt;<BR>&gt; &gt; // streamer<BR>&gt; &gt; vtkSmartPointer&lt;vtkStreamTracer&gt; streamer;<BR>&gt; &gt; streamer.TakeReference(vtkStreamTracer::New());<BR>&gt; &gt; streamer-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort());<BR>&gt; &gt; streamer-&gt;SetSource(igrid-&gt;GetOutput());<BR>&gt; &gt; streamer-&gt;SetMaximumPropagation(2,pp_-&gt;nj(i));<BR>&gt; &gt;<BR>&gt; &gt; streamer-&gt;SetMinimumIntegrationStep(2,0.1);<BR>&gt; &gt; streamer-&gt;SetMaximumIntegrationStep(2,1.0);<BR>&gt; &gt; streamer-&gt;SetInitialIntegrationStep(2, 0.5);<BR>&gt; &gt;<BR>&gt; &gt; streamer-&gt;SetIntegratorTypeToRungeKutta45();<BR>&gt; &gt; streamer-&gt;SetMaximumError(1.0e-8);<BR>&gt; &gt; streamer-&gt;SetIntegrationDirectionToBoth();<BR>&gt; &gt; streamer-&gt;ComputeVorticityOff();<BR>&gt; &gt;<BR>&gt; &gt; // mapper<BR>&gt; &gt; vtkSmartPointer&lt;vtkPolyDataMapper&gt; mapper;<BR>&gt; &gt; mapper.TakeReference(vtkPolyDataMapper::New());<BR>&gt; &gt; mapper-&gt;SetInputConnection(streamer-&gt;GetOutputPort());<BR>&gt; &gt; mapper-&gt;ScalarVisibilityOn();<BR>&gt; &gt; mapper-&gt;ImmediateModeRenderingOn();<BR>&gt; &gt; mappers_.push_back(mapper);<BR>&gt; &gt; streamline_mappers_.push_back(mapper);<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; // add actor<BR>&gt; &gt; for(int rot=rot_beg;rot&lt;rot_end;++rot)<BR>&gt; &gt; {<BR>&gt; &gt; &nbsp;&nbsp; double rotate = rot*360.0/nblades;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkActor&gt; actor;<BR>&gt; &gt; &nbsp;&nbsp; if(!rot)<BR>&gt; &gt; &nbsp;&nbsp; {<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor.TakeReference(vtkActor::New());<BR>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;SetMapper(mapper);<BR>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;RotateZ(rotate);<BR>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actor-&gt;SetVisibility(0);<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ren_-&gt;AddActor(actor);<BR>&gt; &gt; &nbsp;&nbsp;&nbsp;}<BR>&gt; &gt;&nbsp;&nbsp;&nbsp; streamlines_.push_back(actor);<BR>&gt; &gt; }<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Thanks!<BR>&gt; &gt;<BR>&gt; &gt; Jim Shain<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; Powered by www.kitware.com<BR>&gt; &gt;<BR>&gt; &gt; Visit other Kitware open-source projects at<BR>&gt; &gt; http://www.kitware.com/opensource/opensource.html<BR>&gt; &gt;<BR>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<BR>&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<BR>&gt; &gt;<BR>&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<BR>&gt; &gt;<BR>&gt; &gt;<BR>                                               <br /><hr />Hotmail: Free, trusted and rich email service. <a href='http://clk.atdmt.com/GBL/go/171222984/direct/01/' target='_new'>Get it now.</a></body>
</html>