<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR>Hi,<BR>
<BR>
When I try to use <STRONG><STRONG><STRONG><STRONG>vtkStreamTracer</STRONG></STRONG></STRONG></STRONG> the Streamlines do not go all the way to the edge of the object. It stops a bit short, giving the impression that there are no Streamlines there. I get the streamer from an vtkExtractGrid (igrid below). After the Streamline I use a vtkPolyDataMapper (mapper, below) and a vtkActor (called actor down below). The pp_ below has a list of processor data. <BR>
<BR>
I have looked around quite a bit and cannot find a solution. <BR>
<FONT color=#008000 size=2><FONT color=#008000 size=2></FONT></FONT> <BR>
<FONT color=#008000 size=2><FONT color=#008000 size=2> <BR></FONT></FONT><FONT size=2>
vtkSmartPointer<vtkExtractGrid> igrid;<BR>
igrid.TakeReference(vtkExtractGrid::New()); <BR>
<BR>
igrid->SetInputConnection(pdata_[i]->GetOutputPort()); </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2><BR></FONT></FONT><FONT size=2>
igrid->SetSampleRate(skip+1, 1, skip+1);</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2><BR></FONT></FONT><FONT size=2>
igrid->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<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>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// mapper<BR></FONT></FONT><FONT size=2>
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>
</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<rot_end;++rot) <BR>
{<BR>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2> double</FONT></FONT><FONT size=2> rotate = rot*360.0/nblades; <BR>
vtkSmartPointer<vtkActor> actor;<BR>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2> if</FONT></FONT><FONT size=2>(!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></FONT>
<BR>
Thanks!<BR>
<BR>
Jim Shain<BR>
<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>