<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 :</span></b> Alex Malyushytskyy <alexmalvtk@gmail.com><br> <b><span style="font-weight: bold;">À :</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 :</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 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 vtkDataSetSurfaceFilter<br>fits the memory.<br><br><br>Regards,<br> Alex<br><br>On Tue, Nov 22, 2011 at 7:18 AM, R M <<a ymailto="mailto:mlokida@yahoo.fr" href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>> wrote:<br>> Hello,<br>> Here's my problem. I use vtk 5.8.0 on a windows XP platform with 3GB of RAM<br>> (it is an application using vtk and Qt). I have a geometry which is composed<br>> of about 2 000 000 hexadrons cells. My geometry is composed of about 20<br>> blocks.<br>> Now, I want to transform my 20 unstructuredGrid blocks (in a<br>> vtkMultiBlockDataSet) in one polydata or unstructuredGrid.<br>> First, I have try the vtkMergeCells in order to have 1 vtkUnstructuredGrid.<br>> I have the following error:<br>> vtkDataArrayTemplate.cxx l 359 Unable to allocate 35,793,215 Elements of...<br>> (I don't have the end of the message). The number
(35,793,...) is not<br>> always the same.<br>> Now, I have decided to use the vtkAppendFilter. For that I use the following<br>> code :<br>> vtkAppendPolyData* append = vtkAppendPolyData::New();<br>><br>> for(unsigned int i = 0; i < mbds->GetNumberOfBlocks(); ++i)<br>> {<br>> vtkDataSetSurfaceFilter* dssf = vtkDataSetSurfaceFilter::New();<br>> dssf->PassThroughCellIdsOn();<br>> dssf->PassThroughPointIdsOn();<br>><br>> dssf->SetInput( ptr_mbds->GetBlock(i) );<br>> dssf->Update();<br>><br>> append->AddInput( dssf->GetOutput());<br>><br>> dssf->Delete();<br>> }<br>>
append->Update();<br>> With this code, I have the same error. It occurs at line269 of<br>> vtkAppendPolyData.cxx -> newStrips->Allocate(numCells*4); with numCells =<br>> 2251994<br>> I don't know why there is this multiplication *4 since we have the exact<br>> number of cells. May be the process will create more cells than it exists.<br>> Moreover, both method are very time consuming.<br>><br>> So, can someone tell me what 's wrong with my methods and what can I do to<br>> display my geometry ?<br>><br>> Thank you.<br>><br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> <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:<br>> <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>_______________________________________________<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>