[vtkusers] error vtkStreamingDemandDrivenPipeline

XIN LI xli16 at jhmi.edu
Wed Jan 31 10:28:03 EST 2007


Hello vtk users,I just upgraded VTK version from 4.2 to 5.0. My code worked well in VTK4.2. But I got an error when I ran my project in VTK5.0.The error is : ERROR: In \VTK5.0.2\VTK\Filtering\vtkStreamingDemandDrivenPipeline.cxx, line 628 vtkStreamingDemandDrivenPipeline (055CED70): The update extent specified in the information for output port 0 on algorithm vtkTrivialProducer(05139F98) is 0 271 0 167 0 127, which is outside the whole extent 0 135 0 83 0 63.  My project is built with visual C++. I use vtkProbeFilter to upsample an image. The following is the code: vtkFloatArray *downArray = vtkFloatArray::New();downArray->SetVoidArray(someDataBuffer, 136*84*64,1); vtkImageData *downImg = vtkImageData::New();downImg->SetDimensions(136,84, 64);downImg->SetOrigin(0,0,0);downImg->SetSpacing(2,2,2);downImg->SetScalarTypeToFloat();downImg->GetPointData()->SetScalars(downArray);downArray->Delete(); vtkFloatArray *upArray = vtkFloatArray::New();upArray->SetVoidArray(databuffer, 272*168*128,1); vtkImageData *upImg = vtkImageData::New();upImg->SetDimensions(272,168,128);upImg->SetOrigin(0,0,0);upImg->SetSpacing(1,1,1);upImg->SetScalarTypeToFloat();upImg->GetPointData()->SetScalars(upArray); vtkProbeFilter *probe = vtkProbeFilter::New();probe->SetInput(upImg);upImg->Delete();probe->SetSource(downImg);downImg->Delete();probe->Update(); vtkFloatArray *upArray = vtkFloatArray::New();upArray = (vtkFloatArray*)(probe->GetOutput()->GetPointData()->GetScalars()); Could you please give me some help? Thanks! Xin 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070131/f84ce94e/attachment.htm>


More information about the vtkusers mailing list