<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Hello,</span></div><div><br><span></span></div><div><span>I have also tested with windows 7 64bits and 4 GB of Memory. The result is the same.</span></div><div><span>I can't destroy my unstructuredGrid since I need them for some extract selections. So, I need to keep them in memory.</span></div><div><br><span></span></div><div><span>Is there an another solution ?<br></span></div><div><span></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De&nbsp;:</span></b> Alex Malyushytskyy &lt;alexmalvtk@gmail.com&gt;<br> <b><span style="font-weight: bold;">À&nbsp;:</span></b> vtkusers@vtk.org <br> <b><span style="font-weight:
 bold;">Envoyé le :</span></b> Mardi 22 Novembre 2011 23h44<br> <b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: [vtkusers] Fail to render big data of unstructured Grid<br> </font> <br>// windows XP platform with 3GB of RAM<br><br>32 bit Windows address space is limited to 4 GB per process and only<br>half of it is available for data by default.<br>Mostly likely you run out of it. You may try to start task manager and<br>see how memory grows.<br><br>So you&nbsp; want to minimize memory usage.<br><br>You may try deleting unstructured grid (block) as soon it is added.<br>This will complicate iteration a bit unless you use backward iteration order.<br>This may or may not be sufficient.<br><br>In this case I would recommend to write all your unstructured grids on<br>the hard-drive,<br>and remove them from memory,<br><br>then load one, append to polydata, delete<br><br>and hope that total amount of data + single undsructured grid
 +<br>temporary instance of&nbsp; vtkDataSetSurfaceFilter<br>fits the memory.<br><br><br>Regards,<br>&nbsp; &nbsp; Alex<br><br>On Tue, Nov 22, 2011 at 7:18 AM, R M &lt;<a ymailto="mailto:mlokida@yahoo.fr" href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>&gt; wrote:<br>&gt; Hello,<br>&gt; Here's my problem. I use vtk 5.8.0 on a windows XP platform with 3GB of RAM<br>&gt; (it is an application using vtk and Qt). I have a geometry which is composed<br>&gt; of about 2 000 000 hexadrons cells.&nbsp; My geometry is composed of about 20<br>&gt; blocks.<br>&gt; Now, I want to transform my 20 unstructuredGrid blocks (in a<br>&gt; vtkMultiBlockDataSet) in one polydata or unstructuredGrid.<br>&gt; First, I have try the vtkMergeCells in order to have 1 vtkUnstructuredGrid.<br>&gt; I have the following error:<br>&gt; vtkDataArrayTemplate.cxx l 359 Unable to allocate 35,793,215 Elements of...<br>&gt; (I don't have the end of the message).&nbsp; The number
 (35,793,...) is not<br>&gt; always the same.<br>&gt; Now, I have decided to use the vtkAppendFilter. For that I use the following<br>&gt; code :<br>&gt; vtkAppendPolyData* append = vtkAppendPolyData::New();<br>&gt;<br>&gt; for(unsigned int i = 0; i &lt; mbds-&gt;GetNumberOfBlocks(); ++i)<br>&gt; &nbsp;&nbsp;&nbsp; {<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkDataSetSurfaceFilter* dssf = vtkDataSetSurfaceFilter::New();<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dssf-&gt;PassThroughCellIdsOn();<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dssf-&gt;PassThroughPointIdsOn();<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dssf-&gt;SetInput( ptr_mbds-&gt;GetBlock(i) );<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dssf-&gt;Update();<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; append-&gt;AddInput( dssf-&gt;GetOutput());<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dssf-&gt;Delete();<br>&gt; &nbsp; }<br>&gt; &nbsp;&nbsp;
 append-&gt;Update();<br>&gt; With this code, I have the same error. It occurs at line269 of<br>&gt; vtkAppendPolyData.cxx -&gt;&nbsp; newStrips-&gt;Allocate(numCells*4); with numCells =<br>&gt; 2251994<br>&gt; I don't know why there is this multiplication *4 since we have the exact<br>&gt; number of cells. May be the process will create more cells than it exists.<br>&gt; Moreover, both method are very time consuming.<br>&gt;<br>&gt; So, can someone tell me what 's wrong with my methods and what can I do&nbsp; to<br>&gt; display my geometry ?<br>&gt;<br>&gt; Thank you.<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a
 href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt;<br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br> </div> </div>  </div></body></html>