[vtkusers] Error reading cell type
Hayden Smith
s_hayden_28 at yahoo.com
Mon Apr 29 15:32:00 EDT 2013
Yes, I went through it. When there is one vertex per cell, cell type is VTK_VERTEX and it is written 1 and vertex number starts from 0 onward. But when all my cells have one vertex per cell, I can't make it work. Please help me.
Regards,
Hayden.
From: Bill Lorensen <bill.lorensen at gmail.com>
To: mirko heuegger <mheuegger at gmail.com>
Cc: Hayden Smith <s_hayden_28 at yahoo.com>; "vtkusers at vtk.org" <vtkusers at vtk.org>
Sent: Monday, April 29, 2013 11:00 AM
Subject: Re: [vtkusers] Error reading cell type
Have you looked at this document?
http://www.google.com/url?sa=t&rct=j&q=vtk%20legacy%20ifle%20format&source=web&cd=1&ved=0CDQQFjAA&url=http%3A%2F%2Fwww.vtk.org%2FVTK%2Fimg%2Ffile-formats.pdf&ei=pJh-UbrDJ6Lz0gHHhYGIBA&usg=AFQjCNG9oTMbX0KTT-7QOnbwR17bIG4rrA&sig2=O9Ygg5SxuUT7eBR082KxjA&bvm=bv.45645796,d.dmQ
On Mon, Apr 29, 2013 at 11:22 AM, mirko heuegger <mheuegger at gmail.com> wrote:
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.
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130429/2bd73cdb/attachment.htm>
More information about the vtkusers
mailing list