[vtkusers] ImageData WholeExtent/Dimensions problem

John Biddiscombe j.biddiscombe at rl.ac.uk
Thu Oct 5 19:54:28 EDT 2000


I'm averaging some 2D data and producing a final value which in
some cases consists of a single pixel.

Setting
data->SetWholeExtent(0,0,0,0,0,0);
data->SetDimensions(1,1,1);
used to set the dimensions of the image to
1,1,1 as expected
but now the Extent is being set to
0,-1,0,-1,0,-1
and dimensions are returned as 0,0,0

causing most grievious access violations when allocating scalars
and writing to memory.

Has someone changed the functionality to handle UpdateExtents and
streaming issues differently (invalid update extents)?

thanks

John B






More information about the vtkusers mailing list