Skip to content

Commit

Permalink
refs #6294 Correct boxing again
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Dec 10, 2012
1 parent 9406392 commit 73ba4e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,9 @@ namespace MDEvents
{
// Coordinates of this vertex
coord_t vertexCoord[nd];
for (size_t d=0; d<nd; ++d)
vertexCoord[d] = this->extents[d].getMin()+coord_t(m_SubBoxSize[d]*vertexIndex[d]);
for (size_t d=0; d<nd; ++d)
vertexCoord[d] = coord_t(m_SubBoxSize[d]*vertexIndex[d])+this->extents[d].getMin();
//static_cast<coord_t>(vertexIndex[d]) * boxSize[d] + this->extents[d].min

// Is this vertex contained?
coord_t out[nd];
Expand Down

0 comments on commit 73ba4e3

Please sign in to comment.