[vtkusers] Problem writing .vtu file : error with paraview reader

François Rongère Francois.Rongere at ec-nantes.fr
Mon Dec 23 15:15:30 EST 2013


Hello,

I finally found what was the problem thanks to Antoine Genetelli.
The block <piece...> was not closed properly as I did not realized that 
I has to call VTK_GEO() one more more time without any arguments to 
close this block. Everyhing works smoothly now :)

Thank you for help.

Merry christmas !
François.

Le 22/12/2013 21:17, Bill Lorensen a écrit :
> Please keep the vtk list in the replies...
>
> Can you create a small file that illustrates the problem? I suspect
> the problem is in the lib-vtk-io code.
>
> Bill
>
>
> On Thu, Dec 19, 2013 at 11:34 AM, François Rongère
> <Francois.Rongere at ec-nantes.fr> wrote:
>> Hello,
>>
>> I use FORTRAN to manipulate my mesh and I used the LIB_VTK_IO module
>> available from
>>
>> http://code.google.com/p/lib-vtk-io/
>>
>>
>>
>> Le 19/12/2013 17:32, Bill Lorensen a écrit :
>>
>> Did you use VTK to write the file or your own code?
>>
>>
>> On Thu, Dec 19, 2013 at 11:17 AM, François Rongère
>> <Francois.Rongere at ec-nantes.fr> wrote:
>>
>> Hello,
>>
>> I have some problem writing a .vtu file in XML format. It does not open in
>> Paraview and the error message is :
>>
>> ERROR: In /build/buildd/paraview-3.14.1/VTK/Filtering/vtkExecutive.cxx, line
>> 756
>>
>> vtkPVCompositeDataPipeline (0x220ce50): Algorithm
>> vtkXMLUnstructuredGridReader(0x2212ab0) returned failure for request:
>> vtkInformation (0x1065580)
>>
>> Debug: Off
>>
>> Modified Time: 71455
>>
>> Reference Count: 1
>>
>> Registered Events: (none)
>>
>> Request: REQUEST_INFORMATION
>>
>> ALGORITHM_AFTER_FORWARD: 1
>>
>> FORWARD_DIRECTION: 0
>>
>>
>> Although I have searched and found similar issues in the archives of the
>> mailing, I can't manage to find out what I am doing wrong.
>>
>> I only want to store point location informations as well as cell
>> connectivities to visualize unstructured mesh made of triangles and quads in
>> paraview.  Does anyone could have a look at my problem ?
>>
>> Here is the headers of my file :
>>
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>>
>> <?xml version="1.0"?>
>> <VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian">
>>    <UnstructuredGrid>
>>      <Piece NumberOfPoints="         867" NumberOfCells="         976">
>>        <Points>
>>          <DataArray type="Float64" NumberOfComponents="3" Name="Point"
>> format="ascii">
>>   0.000000000000000E+000-0.150000000000000E+002 0.000000000000000E+000
>> -0.492403900000000E+001-0.150000000000000E+002 0.868241000000000E+000
>>   0.000000000000000E+000-0.150000000000000E+002-0.500000000000000E+001
>> [...]
>> -0.408073000000000E+001 0.150000000000000E+002 0.408662000000000E+000
>>          </DataArray>
>>        </Points>
>>        <Cells>
>>          <DataArray type="Int32" Name="connectivity" format="ascii">
>>           201
>>           205
>>          [...]
>>            80
>>           821
>>          </DataArray>
>>          <DataArray type="Int32" Name="offsets" format="ascii">
>>             3
>>             6
>>             9
>>          3674
>>          3678
>>          </DataArray>
>>          <DataArray type="Int8" Name="types" format="ascii">
>>      5
>>      5
>>      [...]
>>      9
>>      9
>>          </DataArray>
>>        </Cells>
>>      </UnstructuredGrid>
>> </VTKFile>
>>
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>>
>> I could also send the entire file for testing purpose.
>>
>> Best wishes !
>> François.
>>
>> --
>> -------------------------------------------------------------------------------
>> François Rongère
>> PhD., Research Engineer
>>
>> Hydrodynamics, Energetics and Atmospheric Environment Laboratory
>> LHEEA - CNRS UMR6598
>>
>> Ocean Energy and Ocean Waves Group
>>
>> Ecole Centrale de Nantes
>> 1 rue de la Noe - BP92101
>> 44321 Nantes Cedex 3
>> FRANCE
>>
>>
>> Web : http://www.ec-nantes.fr
>> -------------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> 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 VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>>
>> --
>> -------------------------------------------------------------------------------
>> François Rongère
>> PhD., Research Engineer
>>
>> Hydrodynamics, Energetics and Atmospheric Environment Laboratory
>> LHEEA - CNRS UMR6598
>>
>> Ocean Energy and Ocean Waves Group
>>
>>
>> Ecole Centrale de Nantes
>> 1 rue de la Noe - BP92101
>> 44321 Nantes Cedex 3
>> FRANCE
>>
>>
>> Web : http://www.ec-nantes.fr
>> -------------------------------------------------------------------------------
>>
>>
>
>



More information about the vtkusers mailing list