<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I am trying to extract surface of a goemetry and write it into a STL. I useĀ </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default">vtkSmartPointer<<wbr>vtkDataSetSurfaceFilter> dsf =</div><div class="gmail_default"><span class="m_-6517780916752604450gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>vtkSmartPointer<<wbr>vtkDataSetSurfaceFilter>::New(<wbr>);</div><div class="gmail_default"><span class="m_-6517780916752604450gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>dsf->SetInputData(ug);</div><div class="gmail_default"><span class="m_-6517780916752604450gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>dsf->Update();</div><div class="gmail_default"><br></div><div class="gmail_default"><span style="white-space:pre-wrap">But I am getting this error in vtkOutputWindow:</span></div><div class="gmail_default"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_default"><span style="white-space:pre-wrap">vtkIdTypeArray (00C30690): Unable to allocate 46656437 elements of size 4 bytes.</span><br></div><div class="gmail_default"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_default"><span style="white-space:pre-wrap">This is about 187MB memory; however, I can not allocate this amount of memory on</span></div><div class="gmail_default"><span style="white-space:pre-wrap">a 12GB RAM. I believe that I must be able to allocate this chunk of memory but for some reason it does not go through. </span><span style="white-space:pre-wrap">I tried to delete every other arrays in my program to make sure that there are not any hidden consumption of RAM but that didnot help.</span></div><div class="gmail_default"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_default"><span style="white-space:pre-wrap">I will be grateful if anyone has any idea how to fix this.</span></div><div class="gmail_default"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_default"><span style="white-space:pre-wrap">Many thanks!</span></div><div class="gmail_default"><span style="white-space:pre-wrap">Reza</span></div></div>
</div>