Receiving output from "marchingCubes"?

Hi,

I’m examining the sample code for marchingCubes.cpp from the included samples project.
When running it, the program continuously uses the CPU, while waiting for mouse presses on the 3D image. This is almost unnoticeable with the supplied sample it’s rendering, but when replacing it with a different rendering image, something more complex, the GUI is almost entirely stuck.
So I was debugging the code to see why this happens (and the debugger doesn’t continue beyond the call to “glutMainLoop()” in line 598). Also I was trying to simplify matters, and to just extract information on the vertices and triangles information so I can export it to Matlab.
Any help that’ll take me to the next step of understanding this thing will be highly appreciated.

Y.