[vtkusers] How to write a polyline in VTK?

Renan Leser leser21 at gmail.com
Thu Oct 7 16:28:03 EDT 2010


I have a simple question.

I'm trying to write a simple polyline, with 2160 points. Each point has it's
X,Y,Z.

But everytime i write the file, i get some errors in reading it on paraview.

And also, I can't understand how the parameter "LINES" WORK.

Here is an example that I found online:

# vtk DataFile Version 2.1
parabola - polyline
ASCII

DATASET POLYDATA
POINTS      11 float
   0.0000000E+00  0.0000000E+00  0.0000000E+00
    1.000000      0.1000000      0.0000000E+00
    2.000000      0.4000000      0.0000000E+00
    3.000000      0.9000000      0.0000000E+00
    4.000000       1.600000      0.0000000E+00
    5.000000       2.500000      0.0000000E+00
    6.000000       3.600000      0.0000000E+00
    7.000000       4.900000      0.0000000E+00
    8.000000       6.400000      0.0000000E+00
    9.000000       8.100000      0.0000000E+00
    10.00000       10.00000      0.0000000E+00

LINES 1    12
           11
            0
            1
            2
            3
            4
            5
            6
            7
            8
            9
           10


How should I write the "LINES" parameter for 2160 points?

Att,

Renan.



-- 
"Believe you can, believe you can't, either way you're right" - Sebastian
Legrain.

Renan Leser de Medeiros
3D Artist
Master in Virtual Reality
Windesign 3D Projects and Visual Communication
+55 21 34952780 | +55 21 32813245 | Fax +55 21 33533245
+55 21 78853861 | +55 21 96815086
http://www.windesign3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101007/88f2438e/attachment.htm>


More information about the vtkusers mailing list