[vtkusers] memory allocation fail for MarchingCubes
Sean McBride
sean at rogue-research.com
Thu Feb 18 22:36:47 EST 2016
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
More information about the vtkusers
mailing list