Hello Rocco,<div><br></div><div>This indeed works, and seems to be the easiest way to insert some points. I now create a vtkPoints objects where I insert all my points. I insert these points in a vtkPolyData object using the setPoints() method. This vtkPolyData object is then given to the setSource() method of the vtkStreamer. Feels a bit like a workaround, but works perfectly well, thank you :)</div>
<div><br></div><div>Tijmen<br><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 4:53 PM, Rocco Gasteiger <span dir="ltr"><<a href="mailto:post@rocco-gasteiger.de">post@rocco-gasteiger.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="DE" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi Tijmen,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Just an idea but you can create a vtkPolyData where you only specify your number of points (as vtkPoints) and use this dataset as input for setSource(). I think this should work.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Best regards, Rocco<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></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">Von:</span></b><span style="font-size:10.0pt"> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>Im Auftrag von </b>Tijmen Klein<br>
<b>Gesendet:</b> Freitag, 23. September 2011 16:33<br><b>An:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><b>Betreff:</b> [vtkusers] vtkStreamTracer Multiple start positions<u></u><u></u></span></p>
</div><div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hello Everyone,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am wondering what the easiest method is to specify multiple start positions for a vtkStreamTracer. For example, if I want to trace 5 lines from 5 arbitrary start positions, what would be the most convenient way to do this? This will probably involve the setSource() or SetSourceConnection() method, but I do not know how to specify arbitrary input points for these method. The examples don't show this either, one uses a single point as input, the other a vtkLineSource and vtkPointSource (which is for random points).<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers,<u></u><u></u></p></div><div><p class="MsoNormal">Tijmen<u></u><u></u></p></div></div></div></div></div><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><br>
<br></blockquote></div><br></div>