[vtkusers] vtkStreamTracer Multiple start positions

Tijmen Klein T.R.Klein at student.rug.nl
Mon Sep 26 11:34:24 EDT 2011


Hello Rocco,

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 :)

Tijmen

On Fri, Sep 23, 2011 at 4:53 PM, Rocco Gasteiger <post at rocco-gasteiger.de>wrote:

> Hi Tijmen,****
>
> ** **
>
> 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.****
>
> ** **
>
> Best regards, Rocco****
>
> ** **
>
> *Von:* vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *Im
> Auftrag von *Tijmen Klein
> *Gesendet:* Freitag, 23. September 2011 16:33
> *An:* vtkusers at vtk.org
> *Betreff:* [vtkusers] vtkStreamTracer Multiple start positions****
>
> ** **
>
> Hello Everyone,****
>
> ** **
>
> 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).****
>
> ** **
>
> Cheers,****
>
> Tijmen****
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110926/ad598578/attachment.htm>


More information about the vtkusers mailing list