<div>just a precision:</div>
<div>this is when a volume dimension is 1</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/7/19, xabi riobe &lt;<a href="mailto:xabivtk@gmail.com">xabivtk@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div>&nbsp;</div>
<div>just to notice a bug in vtkVolumeTextureMapper3D (entered in bugTracker: 5366)</div>
<div>&nbsp;</div>
<div>in method UpdateVolume, the VolumeSpacing attribute can take a negative value (line 1149 in version 1.6):</div>
<div>&nbsp;</div>
<div>this-&gt;VolumeSpacing[i] = (static_cast&lt;double&gt;(dim[i])-1.01)*(double)spacing[i] / static_cast&lt;double&gt;(this-&gt;VolumeDimensions[i]-1);</div>
<div>&nbsp;</div>
<div>since dim[i] - 1.01 is negative, which causes a bad adress access in method vtkVolumeTextureMapper3DComputeScalars (line 217 in version 1.6):</div>
<div>&nbsp;</div>
<div>inPtr = dataPtr + components * ( z*inputDimensions[0]*inputDimensions[1] + dy*inputDimensions[0] +&nbsp;x );</div>
<div>&nbsp;</div>
<div>because z has value -1.<br>&nbsp;</div>
<div>&nbsp;</div>
<div>HTH,</div>
<div>&nbsp;</div>
<div>Xabi R.</div></blockquote></div><br>