[vtkusers] vtkXMLWriterC limitation ?

Frédéric Petit fredmfp at gmail.com
Fri Feb 23 08:26:17 EST 2007


Hi,

I have a binary file (~275 Mb) that I want to convert in VTK format.

I can use legacy VTK format (VTK_STRUCTURED_POINTS, VTK_STRUCTURED_GRID &

VTK_RECTILINEAR_GRID). That works fine.

I can also use XML format (so using vtkXMLWriterC).

For formats like VTK_IMAGE_DATA or VTK_RECTILINEAR_GRID,

that works fine too.

But for VTK_STRUCTURED_GRID, it fails with the message:

Writing VTK STRUCTURED_GRID data: cube.vts... ERROR: In
/home/fred/tmp/Sources_x86_64/VTK/Common/vtkDataArrayTemplate.txx, line 95

vtkFloatArray (0x22aaeae0): Unable to allocate 432169344 elements of size 4
bytes.

Ok, 432169344 elements of size 4 bytes = 1.73 Gb.

But it should work on my etch box 64 bits with 4 Gb of RAM, no ?

Dimensions of my data are 571*876*288 (ie 144 . 10e6 points).

Moreover, VTK_STRUCTURED_GRID in legacy format works fine.

Any suggestion ?

Thanks in advance.

Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070223/b99e4731/attachment.htm>


More information about the vtkusers mailing list