An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit bcd24f7c authored by Ken Martin's avatar Ken Martin
Browse files

fixed bug in reading beyond dimensions of data

parent 36a35219
......@@ -255,7 +255,9 @@ void vtkSweptSurface::SampleInput(vtkMatrix4x4& m, int inDim[3],
//check and make sure point is inside
if ( loc[0] >= 0.0 && loc[1] >= 0.0 && loc[2] >= 0.0 &&
ijk[0] < inDim[0] && ijk[1] < inDim[1] && ijk[2] < inDim[2] )
(ijk[0] < inDim[0] - 1) &&
(ijk[1] < inDim[1] - 1) &&
(ijk[2] < inDim[2] - 1))
{
//get scalar values
idx = ijk[0] + ijk[1]*inDim[0] + ijk[2]*inSliceSize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment