Oh, I just try on 32bit build. Thanks, I will try to 64bit build. <br><div><br><br></div>
 <span>
 </span>
<br>      在2016-02-19,"Sean McBride" <sean@rogue-research.com> 写道:
        <blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
        -----原始邮件-----<br>
        <b>发件人:</b>"Sean McBride" <sean@rogue-research.com> <br>
        <b>发送时间:</b>2016年02月19日 星期五<br>
        <b>收件人:</b>"Liu_tj" <tjlp@netease.com>;"vtkusers" <vtkusers@vtk.org><br>
        <b>主题:</b>Re: [vtkusers] memory allocation fail for MarchingCubes<br>
<br>On Tue, 16 Feb 2016 14:28:38 +0800, Liu_tj said:<br><br>>Hi,<br>><br>>I am a newbie of VTK. Now I need to build 3d model which can be saved as<br>>STL file from DICOM files. I google it and find some guys mentions that<br>>MarchingCubes. So I try to load a DICOM series(515K one file, totally<br>>676 files, around 340M) with the sample code at http://www.vtk.org/Wiki/<br>>VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set the isoValue of<br>>vtkMarchingCubes to 1, when the application memory increase to around<br>>1.07G, then get a memory bad_alloc exception.<br>><br>>What happen with it? What should I fix this problem?<br><br>What OS are you using?  Are you building as a 64 bit process/app or 32 bit?  You need the former for that size data.<br><br>Cheers,<br><br>--<br>____________________________________________________________<br>Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>Rogue Research                        www.rogue-research.com<br>Mac Software Developer              Montréal, Québec, Canada<br><br><br></blockquote><br><br><span title="neteasefooter"><p> </p></span>