Commit d55c9afd authored by Matt Larsen's avatar Matt Larsen
Browse files

fixing cell indices for volume renderer cell locator

parent 93aa6410
...@@ -279,9 +279,9 @@ public: ...@@ -279,9 +279,9 @@ public:
if (temp[0] == vtkm::Float32(PointDimensions[0] - 1)) if (temp[0] == vtkm::Float32(PointDimensions[0] - 1))
temp[0] = vtkm::Float32(PointDimensions[0] - 2); temp[0] = vtkm::Float32(PointDimensions[0] - 2);
if (temp[1] == vtkm::Float32(PointDimensions[1] - 1)) if (temp[1] == vtkm::Float32(PointDimensions[1] - 1))
temp[0] = vtkm::Float32(PointDimensions[1] - 2); temp[1] = vtkm::Float32(PointDimensions[1] - 2);
if (temp[2] == vtkm::Float32(PointDimensions[2] - 1)) if (temp[2] == vtkm::Float32(PointDimensions[2] - 1))
temp[0] = vtkm::Float32(PointDimensions[2] - 2); temp[2] = vtkm::Float32(PointDimensions[2] - 2);
cell = temp; cell = temp;
invSpacing = InvSpacing; invSpacing = InvSpacing;
} }
......
Supports Markdown
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