<div dir="ltr">This is in VTK 6.0.<div><br>
<div>Calling SetCroppingRegionPlanes on a vtkSmartVolumeMapper, I keep getting exceptions in vtkGPUVolumeRayCastMapper.cxx.</div><div>The fundamental problem is that the volBounds obtained from GetInput()->GetBounds() is slightly smaller than it should be, as if it has suffered rounding error somewhere, and then there seems to be a logical bug which means that an illegal clipping volume is calculated.</div>
<div><br></div><div>The extent of my data is 0..465 x 0..459 x 0..499, and I have set spacings of 1.0 and origins of 0.0.</div><div><br></div><div>But the volBounds obtained is 0..463.155 x 0..458.009 x 0..496.6</div><div>
<br></div><div>I then try to set a cropping region in Z of 498 to 499. </div><div><br></div><div>The logic in vtkGPUVolumeRayCastMapper::ClipCroppingRegionPlanes() calculates some bounds whose maximum Z is less than its minimum, and later an assertion fails in vtkOpenGLGPUVolumeRayCastMapper::RenderSubVolume(). </div>
</div><div><br></div><div>Please can anyone suggest what I might be doing wrong or if there is a work-around?</div></div>