Jerzy Jalocha N wrote:
By error, I also tried with the same XML file, but corrupted. I.e.,
all spaces between data points were removed (see file below). Maya Vi
doesn't complain at all about corrupt data, when I import this.

Unfortunately, VTK isn't very helpful when it parses its data files and there is little Mayavi can do to help that. So you aren't going to get helpful error reports from mayavi regarding a corrupted XML file.

As regards your XML file, I think you have some obvious errors in the file format. For one thing the spacing and origin and extents are all three dimensional.

<?xml version="1.0"?>
<VTKFile type="ImageData" version="0.1" byte_order="BigEndian">
  <ImageData WholeExtent="0 7 0 5" Origin="0 0" Spacing="1 1">
     <Piece Extent="0 7 0 5">


See the attached version with a fixed version which works fine for me.

prabhu

<?xml version="1.0"?>

<VTKFile type="ImageData" version="0.1" byte_order="BigEndian">
<ImageData WholeExtent="0 7 0 5 0 0" Origin="0 0 0" Spacing="1 1 1">

<Piece Extent="0 7 0 5 0 0">

<PointData Scalars="vertexData">

<DataArray type="Float32" Name="scalarData" format="ascii">

1.58363059326 1.12512089676 0.79884364002 0.626384744473
0.496087229764 0.389619133684
-1 2.18205128205 1.32574660633 0.978952991453
0.724396031622 0.532223435793
4.13247863248 3.58766968326 2.7875 1.74493464052
1.15339366516 0.766131221719
-1 -1 -1 3.59914529915
2.41303418803 1.2274729547
4.20972222222 -1 4.97692307692 -1 -1
1.85458144796
1.85743464052 2.95882352941 3.95 -1
3.13317307692 1.32910236748
1.11606837607 2.1014957265 -1 2.89244595274 1.5137919533
0.860490196078
0.734079939668 1.13458735885 1.72324660633 1.24907993967
0.838397435897 0.578347007351
</DataArray>

</PointData>

</Piece>

</ImageData>

</VTKFile> 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to