[vtkusers] Re: Continuous line from line segments

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Dec 23 13:04:27 EST 2004


Hi Patrick,

vtkStripper will do what you want... I think there's a flag "PassLinesOn"
that should be set. There are some instances where it wont strip the whole
line but there is a patch for this on the bug tracker.

hth

Goodwin
----- Original Message ----- 
From: "Patrick Brockmann" <Patrick.Brockmann at cea.fr>
Newsgroups: gmane.comp.lib.vtk.user
Sent: Wednesday, December 22, 2004 4:22 PM
Subject: Continuous line from line segments


> Hi all,
>
> Is there a way to get a continuous line from line segments.
> Here is the exemple file, I have used for testing:
>
> ****************
> # vtk DataFile Version 3.0
> vtk output
> ASCII
> DATASET POLYDATA
> POINTS 8 float
> 144.999 -43.9303 0 146.999 -43.9303 0 144.999 -42.4725 0
> 146.999 -42.4725 0 144.999 -40.9799 0 148.999 -42.4725 0
> 146.999 -40.9799 0 148.999 -40.9799 0
> LINES 8 24
> 2 0 1
> 2 2 0
> 2 1 3
> 2 3 5
> 2 4 2
> 2 5 7
> 2 6 4
> 2 7 6
> CELL_DATA 8
> SCALARS scalars float
> LOOKUP_TABLE default
> 0 0 0 0 0 0 0 0
> POINT_DATA 8
> ****************
>
> You will see with the attached png image, 8 line segments not connected.
> Now, I would like to have a single polyline from those 8 line segments
> connecting points 0,1,3,5,7,6,4,2
>
> Is there a way to do this ?
> Any help is welcome.
>
> Regards
> Patrick
>
>


----------------------------------------------------------------------------
----






----------------------------------------------------------------------------
----


> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list