<div dir="ltr">Thank you so much for helping !! <br>That is all i needed.<br><br>Thank you,<br>Andi</div><div class="gmail_extra"><br><div class="gmail_quote">On 16 January 2017 at 17:45, Mark Olesen <span dir="ltr"><<a href="mailto:Mark.Olesen@esi-group.com" target="_blank">Mark.Olesen@esi-group.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andi,<br>
<br>
The document that Ken referenced (pg 15 onwards are what you need) are actually enough. However if I understand correctly, you probably just want a really quick solution and don't want to wade through all the details. My suggestion would be to load your file in paraview and then re-save it from there.<br>
<br>
File > Save Data: vtm/vtp/vtu ...<br>
<br>
You should get a "Configure Writer" dialog. Select the appropriate data mode (ASCII, unencoded) and this should give you really quick insight into the contents in an easily readable form.<br>
<br>
Cheers,<br>
/mark<br>
<br>
______________________________<wbr>__________<br>
From: ParaView <<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a><wbr>> on behalf of Andi Hartarto <<a href="mailto:andi3173@gmail.com">andi3173@gmail.com</a>><br>
Sent: Saturday, January 14, 2017 7:58 AM<br>
To: Moreland, Kenneth<br>
Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: Re: [Paraview] [EXTERNAL] Decode a vtu file<br>
<span class=""><br>
Dear Kenneth,<br>
<br>
Thank you for helping but i didn't mean understanding the text document if that is what you mean.<br>
I mean I want to access the appended data in base 64.<br>
<br>
Maybe in command module somehow<br>
(code to show the data)<br>
data ..<br>
<br>
Thank you,<br>
Andi<br>
<br>
</span><span class="">On 14 January 2017 at 03:49, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a><mailto:<a href="mailto:kmorel@sandia.gov">kmor<wbr>el@sandia.gov</a>>> wrote:<br>
Documentation for vtu file format (and several other standard VTK formats) is here:<br>
<br>
<a href="http://www.vtk.org/VTK/img/file-formats.pdf" rel="noreferrer" target="_blank">http://www.vtk.org/VTK/img/<wbr>file-formats.pdf</a><br>
<br>
-Ken<br>
<br>
</span>From: ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@<wbr>paraview.org</a><mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-<wbr>bounces@paraview.org</a>>] On Behalf Of Andi Hartarto<br>
<span class="">Sent: Thursday, January 12, 2017 7:54 PM<br>
</span>To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><mailto:<a href="mailto:paraview@paraview.org">p<wbr>araview@paraview.org</a>><br>
<div class="HOEnZb"><div class="h5">Subject: [EXTERNAL] [Paraview] Decode a vtu file<br>
<br>
Hello all,<br>
<br>
Can I please have guidance/help in decoding a vtu file?<br>
<br>
My file is a<br>
<?xml version="1.0"?><br>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" compressor="<wbr>vtkZLibDataCompressor"><br>
<UnstructuredGrid><br>
<Piece NumberOfPoints="116" NumberOfCells="1052" ><br>
<PointData><br>
</PointData><br>
<CellData><br>
<DataArray type="Int32" Name="TetrahedraRank" format="appended" RangeMin="1" RangeMax="2" offset="0" /><br>
<DataArray type="Int32" Name="TetrahedraNo" format="appended" RangeMin="0" RangeMax="262" offset="188" /><br>
</CellData><br>
<Points><br>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="2003013.3465" RangeMax="2003224.1668" offset="812" /><br>
</Points><br>
<Cells><br>
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="1680" /><br>
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="5892" /><br>
<DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="8116" /><br>
</Cells><br>
</Piece><br>
</UnstructuredGrid><br>
<AppendedData encoding="base64"><br>
(data long list)<br>
<br>
The file can be found in this link:<br>
<a href="https://drive.google.com/open?id=0BzmZiSDoM7l3U2poYWNTbUhBWVU" rel="noreferrer" target="_blank">https://drive.google.com/open?<wbr>id=<wbr>0BzmZiSDoM7l3U2poYWNTbUhBWVU</a><br>
<br>
I don't understand how to decode a vtk file and couldn't find anything in google. I've tried using some scripts in python for base64 but it didn't work..<br>
<br>
The reason why I need to decode this is because somehow this vtk file which load in paraview perfectly becomes a 2d file in another software "MOOSE" .. So I think somehow in the encoded data is telling the other software "only display the 2D intersection of blocks". But I want a 3D cube not a 2D surface. If someone knows about this please tell me .<br>
<br>
Thank you,<br>
Andi<br>
<br>
</div></div></blockquote></div><br></div>