[Paraview] vts file format
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri Sep 12 14:09:10 EDT 2014
I don't think the file you attached is correct. Attached is an example of
how a VTI file should look.
On Fri, Sep 12, 2014 at 10:35 AM, Mohammad KONESHLOO <mkonesh at yahoo.com>
wrote:
> Thanks Utkrash,
>
> I read about the format used for image (vti), I tried to make a simple
> example as follow: but it does not work, I've chose (loop o X then Y then Z
> I mean (For X {For Y {For Z{}}}).
> I think the Python code create a such file too, But I doesn't work
>
> <VTKFile type=”ImageData” ...>
> <ImageData WholeExtent=”0 4 0 3 0 2”
> Origin=”1 1 1” Spacing=”1 1 1”>
> <Piece Extent=”0 4 0 3 0 2”>
> <PointData>1 1 1
> 1 1 2
> 1 2 1
> 1 2 2
> 1 3 1
> 1 3 2
> 1 4 1
> 1 4 2
> 2 1 1
> 2 1 2
> 2 2 1
> 2 2 2
> 2 3 1
> 2 3 2
> 2 4 1
> 2 4 2
> 3 1 1
> 3 1 2
> 3 2 1
> 3 2 2
> 3 3 1
> 3 3 2
> 3 4 1
> 3 4 2
> 4 1 1
> 4 1 2
> 4 2 1
> 4 2 2
> 4 3 1
> 4 3 2
> 4 4 1
> 4 4 2
> 5 1 1
> 5 1 2
> 5 2 1
> 5 2 2
> 5 3 1
> 5 3 2
> 5 4 1
> 5 4 2
> </PointData>
> <CellData>1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
> 11
> 12
> 13
> 14
> 15
> 16
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
> 26
> 27
> 28
> 29
> 30
> 31
> 32
> 33
> 34
> 35
> 36
> 37
> 38
> 39
> 40
> </CellData>
> </Piece>
> </ImageData>
> </VTKFile>
>
> Thanks in advance
>
>
>
> On Thursday, September 11, 2014 1:49 AM, Utkarsh Ayachit <
> utkarsh.ayachit at kitware.com> wrote:
>
>
> Are you sure it's a "structured grid" or is an "image data"? Refer to this
> for difference between the two:
> http://www.paraview.org/Wiki/ParaView/Users_Guide/VTK_Data_Model
>
> Programmable filer may be the easiest way to go. Attached is an extract
> from the ParaView User's Guide that's currently being updated. A
> combination of recipes shown in Sections 14.2.1 and 14.2.4 is what should
> help.
>
> Utkarsh
>
> ParaViewUsersGuideExtract.pdf
> <https://docs.google.com/a/kitware.com/file/d/0B26kKqqTZSgGN2FxVDVnX0hUWEk/edit?usp=drive_web>
>
>
> On Wed, Sep 10, 2014 at 4:56 PM, Mohammad KONESHLOO via ParaView <
> paraview at paraview.org> wrote:
>
> Hi everybody,
>
> I'm trying to convert a big csv file to a simple structured grid
> (100x100x136). I imported it to Pra-view, but I could not convert it to
> grid using Filters-> "Table to Structured Grid". another attempt was
> creating a vts/vtk file from my csv file, but the structure of file is
> ambiguous. I couldn't find any example.
> In VTK pdf file regarding file formats, there is just an example for
> structured point (page.18), I copied and pasted this example in Notepad++
> and saved with .vts and vtk extension, but I could not open in in Paraview
> (4.2.0 RC1 64-bit).
>
> Do you have any example file or comment on the file structure?
>
> Thanks
>
> _______________________________________________
> Powered by 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140912/5c07f493/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.vti
Type: application/octet-stream
Size: 1541 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140912/5c07f493/attachment-0001.obj>
More information about the ParaView
mailing list