Hi All, <br><br>now i have a issue on vtkImageData::ComputeStructuredCoordinates,<br><br>the issue begin with i use vtkProbeFilter to plot a line on a volume data, and one end of the line is out of the volume, such as<br><br>
--<br>assume: volume dims is 30x30x30, spacing all 1.0, origion is (0,0,0), then it&#39;s bound is [0.0, 29.0] and one point of the plotting line is x=29.2 in world coordinates<br>--<br><br>but ComputeStructuredCoordinates calc point ( x=29.2 )&#39;s ijk[0]=29, then the align it to ijk[0] = 28 with pcoord[x]=1.0<br>
<br>so, sample points x=29.2, x=29.4, x=29.6, x=29.8 get equal value, the the plotting line is odd where i think the value should drop to zero<br><br>if this is a interpolation out of bound, why when x= -0.1, ComputeStructuredCoordinates  align to -1 (use floor) to elimate the interpolation?<br>
<br>could someone help me, or maybe it&#39;s my misunderstand some concepts? i appreciate.<br><br>thanks and regards<br><br>just<br><br><br><br><br>