<font size="2">
<p>Hi,</p>
<p>I have a binary file (~275 Mb) that I want to convert in VTK format.</p>
<p>I can use legacy VTK format (VTK_STRUCTURED_POINTS, VTK_STRUCTURED_GRID &amp;</p>
<p>VTK_RECTILINEAR_GRID). That works fine.</p>
<p>I can also use XML format (so using vtkXMLWriterC).</p>
<p>For formats like VTK_IMAGE_DATA or VTK_RECTILINEAR_GRID,</p>
<p>that works fine too.</p>
<p>But for VTK_STRUCTURED_GRID, it fails with the message:</p>
<p>Writing VTK STRUCTURED_GRID data: cube.vts... ERROR: In /home/fred/tmp/Sources_x86_64/VTK/Common/vtkDataArrayTemplate.txx, line 95</p>
<p>vtkFloatArray (0x22aaeae0): Unable to allocate 432169344 elements of size 4 bytes.</p>
<p>Ok, 432169344 elements of size 4 bytes = 1.73 Gb.</p>
<p>But it should work on my etch box 64 bits with 4 Gb of RAM, no ?</p>
<p>Dimensions of my data are 571*876*288 (ie 144 . 10e6 points).</p>
<p>Moreover, VTK_STRUCTURED_GRID in legacy format works fine.</p>
<p>Any suggestion ?</p>
<p>Thanks in advance.</p>
<p>Cheers,</p></font>