=?iso-2022-jp?B?UmU6UmU6IFtQYXJhdmlld10gRmlsZSBmb3JtYXQgZm9yIHJlYWRpbmcgYmluYXJ5IGRhdGEgaW4gcGFyYWxsZWw=?=

suzu at kg.candypop.jp suzu at kg.candypop.jp
Thu Sep 15 02:01:43 EDT 2005


Thank you Mr.Brad.King

>You should add the attribute
>
>  byte_order="LittleEndian"
>
>to the VTKData at the top.  If your binary data is in big endian order
        ^^^^^^^
        VTKFile tag ?

>The format for raw appended binary data should be
>
><AppendedData encoding="raw">
>  _NNNN...........................
></AppendedData>

 I didn't know raw option ! Thank you for your advice!

 I created .vts file again, and tried to read by ParaView.
 But the same error occurred....

 I will try some case. Thank you..


-----------------------------------------------------
<?xml version="1.0"?>
<VTKFile type="StructuredGrid" byte_order="LittleEndian" version="0.1">
  <StructuredGrid WholeExtent="0 3 0 2 0 1">
   <Piece Extent="0 3 0 2 0 1">
    <PointData Scalars="pressure">
     <DataArray type="Float32" Name="pressure" format="appended" offset="0" />
    </PointData>
    <CellData>
    </CellData>
    <Points>
     <DataArray type="Float32" NumberOfComponents="3" format="ascii">
0.0 0.0 0.0 0.1 0.0 0.0 0.2 0.0 0.0 0.3 0.0 0.0 0.0 0.1 0.0 0.1 0.1 0.0 0.2 0.1 0.0 0.3 0.1 0.0 0.0 0.2 0.0 0.1 0.2 0.0 0.2 0.2 0.0 0.3 0.2 0.0
0.0 0.0 0.05 0.1 0.0 0.1 0.2 0.0 0.1 0.3 0.0 0.1 0.0 0.1 0.1 0.1 0.1 0.1 0.2 0.1 0.1 0.3 0.1 0.1 0.0 0.2 0.1 0.1 0.2 0.1 0.2 0.2 0.1 0.3 0.2 0.15
     </DataArray>
    </Points>
   </Piece>
  </StructuredGrid>
<AppendedData encoding="raw">
_NNNN...............................
</AppendedData>
</VTKFile>
-------------------------------------------------------

 _           a character
 NNNN        array size (raw binary unsigned int).  This case , NNNN=24 (4*3*2) 
 .......     raw binary part.  This case, 96bytes (24*4).


More information about the ParaView mailing list