Commit 1ffe7913 by Mathias Goldau

[FIX] getCellId-Bug also in this branch

parent 4d9bb733
......@@ -324,7 +324,7 @@ std::vector< size_t > WGridRegular3D::getCellVertexIds( size_t cellId ) const
size_t minVertexIdZ = cellId / ( ( m_nbPosX - 1 ) * ( m_nbPosY - 1 ) );
size_t remainderXY = cellId - minVertexIdZ * ( ( m_nbPosX - 1 ) * ( m_nbPosY - 1 ) );
size_t minVertexIdY = remainderXY / ( m_nbPosX - 1 );
size_t minVertexIdX = minVertexIdY % ( m_nbPosX - 1 );
size_t minVertexIdX = remainderXY % ( m_nbPosX - 1 );
size_t minVertexId = minVertexIdX + minVertexIdY * m_nbPosX + minVertexIdZ * m_nbPosX * m_nbPosY;
......
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