vtkImageMarchingCubes streams improperly
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The following code snippet produces the error below (VTK CVS version, May 09 2005; gentoo linux 2005.0; python 2.3.4; gcc 3.3.5)
imageSource = vtkImageNoiseSource() imageSource.SetWholeExtent(0,255,0,255,0,32) imageSource.Update()
imageCopy = vtkImageData() imageCopy.DeepCopy(imageSource.GetOutput()) imageCopy.Update()
marchingCubes = vtkImageMarchingCubes() marchingCubes.SetInput(imageCopy) marchingCubes.Update()
Error: ERROR: In /usr/local/src/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 620 vtkStreamingDemandDrivenPipeline (0x8172418): The update extent specified in the information for output port 0 on algorithm vtkTrivialProducer(0x8172300) is 0 255 0 255 15 32, which is outside the whole extent 0 255 0 255 0 17.
The error vanishes
- when using vtkMarchingCubes instead of vtkImageMarchingCubes (the former doesn't support streaming)
- when imageSource.GetOutput() is used as an input to marchingCubes, instead of imageCopy.
If the error can't be replicated, probably increasing the whole extent in the imageSource will do.
Ciao!
Luca