[vtkusers] memory allocation fail for MarchingCubes

Liu_tj tjlp at netease.com
Fri Feb 19 00:00:28 EST 2016


Oh, I just try on 32bit build. Thanks, I will try to 64bit build.





在2016-02-19,"Sean McBride" <sean at rogue-research.com> 写道: -----原始邮件-----
发件人:"Sean McBride" <sean at rogue-research.com>
发送时间:2016年02月19日 星期五
收件人:"Liu_tj" <tjlp at netease.com>;"vtkusers" <vtkusers at vtk.org>
主题:Re: [vtkusers] memory allocation fail for MarchingCubes

On Tue, 16 Feb 2016 14:28:38 +0800, Liu_tj said:

>Hi,
>
>I am a newbie of VTK. Now I need to build 3d model which can be saved as
>STL file from DICOM files. I google it and find some guys mentions that
>MarchingCubes. So I try to load a DICOM series(515K one file, totally
>676 files, around 340M) with the sample code at http://www.vtk.org/Wiki/
>VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set the isoValue of
>vtkMarchingCubes to 1, when the application memory increase to around
>1.07G, then get a memory bad_alloc exception.
>
>What happen with it? What should I fix this problem?

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.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160219/807a9c82/attachment.html>


More information about the vtkusers mailing list