[vtkusers] Can a VTK file consists of Points only

Hal Canary hal at cs.unc.edu
Fri Apr 26 07:54:21 EDT 2013


Try this:

/**************************************************/
# vtk DataFile Version 3.0
track data of XX well
ASCII
DATASET POLYDATA
POINTS 10 float
0.00 0.00 0.00
0.00 0.00 1400.00
0.00 0.48 1466.00
0.50 2.34 1600.00
2.68 4.17 1800.00
5.53 4.68 2000.00
9.15 4.36 2200.00
12.02 1.95 2400.00
8.68 -0.86 2599.96
-1.14 4.81 2799.95
VERTICES 10 20
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
/**************************************************/


On 04/26/2013 12:12 AM, Hayden Smith wrote:
> Hello,
>     Thank you very much for the reply. Could you tell me what is the
> problem with the following vtk file, why it shows error reading cell data?
> /**************************************************/
> # vtk DataFile Version 1.0
> track data of XX well
> ASCII
> DATASET POLYDATA
> POINTS 10 float
> 0.00 0.00 0.00
> 0.00 0.00 1400.00
> 0.00 0.48 1466.00
> 0.50 2.34 1600.00
> 2.68 4.17 1800.00
> 5.53 4.68 2000.00
> 9.15 4.36 2200.00
> 12.02 1.95 2400.00
> 8.68 -0.86 2599.96
> -1.14 4.81 2799.95
> VERTICES 10 10
> 0   0.00 0.00 0.00
> 1   0.00 0.00 1400.00
> 2  0.00 0.48 1466.00
> 3   0.50 2.34 1600.00
> 4   2.68 4.17 1800.00
> 5   5.53 4.68 2000.00
> 6   9.15 4.36 2200.00
> 7  12.02 1.95 2400.00
> 8  8.68 -0.86 2599.96
> 9   -1.14 4.81 2799.95
>  
> CELLS 10 10
> 1   0.00 0.00 0.00
> 1   0.00 0.00 1400.00
> 1   0.00 0.48 1466.00
> 1   0.50 2.34 1600.00
> 1   2.68 4.17 1800.00
> 1   5.53 4.68 2000.00
> 1   9.15 4.36 2200.00
> 1   12.02 1.95 2400.00
> 1   8.68 -0.86 2599.96
> 1    -1.14 4.81 2799.95
> CELL_TYPES 10
> /***************************************************/
> Thanks,
> Hayden




More information about the vtkusers mailing list