[vtkusers] Error reading cell type

Hayden Smith s_hayden_28 at yahoo.com
Mon Apr 29 10:27:48 EDT 2013


Hello,
      Does it mean I should write as follows:
 
CELL_TYPES 10
0
0
0
:
:
:
etc.
 
oe  
CELLS 10
1 0
1 1
1 2
:
:
etc.
 
This also does not work.
 
Please explain a bit more.
Regards,
Shamima.

From: Bill Lorensen <bill.lorensen at gmail.com>
To: Hayden Smith <s_hayden_28 at yahoo.com> 
Cc: "vtkusers at vtk.org" <vtkusers at vtk.org> 
Sent: Monday, April 29, 2013 9:11 AM
Subject: Re: [vtkusers] Error reading cell type



VTK data are 0 offset. looks like you are treating them as 1 offset. 




On Sun, Apr 28, 2013 at 11:43 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:

Dear Vtk users,
>I can read the following vtk file, it shows some ouput, but also shows error: error reading cell types, if I put CELL_TYPES as 1 (VTK_VERTEX), it shows same error: 
>/*****************************/# vtk DataFile Version 1.0
>2D scalar data
>ASCII
>DATASET UNSTRUCTURED_GRID
>POINTS 10 float
>5 7 10
>5 7 13
>5 8 11.25
>5 8.25 11
>5 8 10
>5 7 11.25
>5 7.5 13
>5 8 12.5
>5 7 10.3125
>5 7 10.625
>CELLS 10 10
>1 1 
>1 2 
>1 3 
>1 4 
>1 5 
>1 6 
>1 7 
>1 8 
>1 9 
>1 10 
>CELL_TYPES 10
>POINT_DATA 10
>VECTORS displacement float
>5.317256 0.038328 0.009241
>1.270657 0.036974 -0.467480
>0.347197 0.061410 -1.310931
>0.704583 0.061886 -1.197829
>1.022699 0.056816 -0.897948
>1.304252 0.057359 -0.483078
>1.354688 0.053458 0.015998
>0.838027 0.005652 0.324289
>0.951906 -0.113057 0.007819
>1.653968 -0.127456 0.014767
>SCALARS temperature float
>LOOKUP_TABLE default
>0.1
>0.2
>0.3
>0.4
>0.5
>0.6
>0.7
>0.8
>0.90702939
>0.90702939
>/*****************************/
>
>Please help me fix the error.Thanks,
>Hayden.
>_______________________________________________
>Powered by http://www.kitware.com/
>
>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
>Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130429/7560f9c0/attachment.htm>


More information about the vtkusers mailing list