[vtkusers] Error reading cell type

Hayden Smith s_hayden_28 at yahoo.com
Tue Apr 30 10:31:29 EDT 2013


Thanks, I got it now.
 
Hayden.

From: mirko heuegger <mheuegger at gmail.com>
To: Hayden Smith <s_hayden_28 at yahoo.com> 
Cc: Bill Lorensen <bill.lorensen at gmail.com>; "vtkusers at vtk.org" <vtkusers at vtk.org> 
Sent: Tuesday, April 30, 2013 12:36 AM
Subject: Re: [vtkusers] Error reading cell type



Hello! 

Please read the mentioned documentation (<http://www.vtk.org/VTK/img/file-formats.pdf>) , especially page 4: Dataset Format for Unstructured Grid: 
' The CELLS keyword requires two parameters: the number of cells n and the
size of the cell list size.'

hth

mirko




On Mon, Apr 29, 2013 at 9:36 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:

Hi,
>   It works perfect, but why do I need to double the number of cells? Please clarify it.
> 
>Thanks,
>Hayden.
>
>
>From: mirko heuegger <mheuegger at gmail.com>
>To: Hayden Smith <s_hayden_28 at yahoo.com> 
>Cc: Bill Lorensen <bill.lorensen at gmail.com>; "vtkusers at vtk.org" <vtkusers at vtk.org> 
>Sent: Monday, April 29, 2013 10:22 AM 
>
>Subject: Re: [vtkusers] Error reading cell type
>
>
>
>Hello! 
>
>
>When I use:
>
>
>CELLS 10 20
>1 1
>1 2
>1 3
>1 4
>1 5
>1 6
>1 7
>1 8
>1 9
>1 10
>
>
>and 
>
>
>CELL_TYPES 10
>1
>1
>1
>1
>1
>1
>1
>1
>1
>1
>
>
>
>
>Then I'm able to load this file in Paraview. 
>(see <http://www.vtk.org/VTK/img/file-formats.pdf> for more details)
>
>
>
>
>
>
>
>hth
>
>
>mirko
>
>
>
>
>
>On Mon, Apr 29, 2013 at 4:27 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:
>
>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
>>
>>
>>
>>_______________________________________________
>>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
>>
>>
>
>
>
>-- 
>
>Real programmers don't document; if it was
>hard to write, it should be hard to understand. 
>
>


-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130430/02610e71/attachment.htm>


More information about the vtkusers mailing list