[vtkusers] Continuous line from line segments

Patrick Brockmann Patrick.Brockmann at cea.fr
Wed Dec 22 11:22:14 EST 2004


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: extract.png
Type: image/png
Size: 6173 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041222/45d35699/attachment.png>


More information about the vtkusers mailing list