[vtkusers] Computing memory size needed - bad_alloc

Bartosz Wiklak bwiklak at gmail.com
Mon Jun 15 03:30:10 EDT 2009


Hi,
I'm using vtkFixedPointVolumeRayCastMapper. While scene rendering I'm
getting bad_alloc exception from
vtkFixedPointVolumeRayCastMapper::ComputeGradients.

I tried:

					try
					{
						myRenderer->window->Render();
					}catch (exception &e)
					{
						myRenderer->renderer3D->RemoveActor(myRenderer->volume3D);
						myRenderer->window->Render();

					}
but pipeline is broken after this.
How can I estimate memory needed to render scene (not using vtkParallel)?
How to recover after such bad_alloc exception?

Thx,
Bartek



More information about the vtkusers mailing list