[vtkusers] vtkAppendPolyData()..

David Doria daviddoria+vtk at gmail.com
Mon Mar 1 08:00:31 EST 2010


On Mon, Mar 1, 2010 at 2:03 AM, Rakesh Patil <rakeshthp at in.com> wrote:

> Hi VTK Users..
>
> I want to extract a single contour line from a set of xy points. So to
> begin with i used vtkContourFilter class to extract a single contour line of
> a particular value. But the output contained n number of lines not a single
> line. So I thought of merging them.. So i used,
>
> vtkAppendPolyData
>
> class to make it a single line. I get it as a single line but there is a
> smal confusion here.. Suppose there are 6 lines. when displaying, the first
> point of the 2nd line is connected to the first point of 1st line. similarly
> first point of the third line is connected to the first point of the second
> line. Thus creating unwanted lines in between..
>
> Any solution to get rid of this..???
>
> Thanks
>
> Regards
> Rakesh Patil
>
>
vtkAppendPolyData is for combining multiple vtkPolyData's into a single
vtkPolyData. I believe vtkContourFilter just produces a single PolyData, so
I don't think it really makes sense to combine them like this. Can you post
a screen shot of your multiple lines?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100301/170811f0/attachment.htm>


More information about the vtkusers mailing list