[vtkusers] Re: vtkLineSource - multiple points

K.R.Subramanian krs at cs.uncc.edu
Fri Oct 25 13:43:06 EDT 2002


Phil Cook wrote:

> >
> > Message: 1
> > From: Stefan Bruckner <stefan.bruckner at chello.at>
> > To: vtkusers at public.kitware.com
> > Date: 24 Oct 2002 21:52:31 +0200
> > Subject: [vtkusers] vtkLineSource - multiple points
> >
> > Hi. I have a question regarding vtkLineSource: I want to create a
> > polyline connecting several points. Additionally, I want to be able to
> > add new points to the line later.
> >
> > However, vtkLineSource only supports two points.
> >
> > What's the best way to to this? Is using several line sources a good
> > way, what alternatives are there?
> >
> > Thanks for your help!
> >
> > --
> > Stefan Bruckner
> >
> >
>
> Try vtkTubeFilter. It will draw a multi-sided (min sides == 3) tube
> around lines composed of many points. First, define the points
> (vtkPoints) and lines (vtkCellArray), then call poly->SetPoints(points)
> and poly->SetLines(lines). You can then use poly as the input to a
> vtkTubeFilter.
>
> You will need to reapply the filter if you change the input points.

Or put the TubeFilter around a  1D structured grid  -:) works fine..

    -- krs

>
>
> Phil
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

--
K.R.Subramanian                        Phone: (704) 687-4872
Department of Computer Science         FAX:   (704) 687-4893
UNC Charlotte, CARC 311                Email: krs at cs.uncc.edu
Charlotte, NC 28223-0001               Web: http://www.cs.uncc.edu/~krs






More information about the vtkusers mailing list