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