From 6d4c42c5f7c5d4de10afc977623a078b51153ca8 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 2 May 2024 19:49:14 -0400 Subject: [PATCH] Update src/simplnx/DataStructure/Geometry/RectGridGeom.cpp Co-authored-by: Jared Duffey --- src/simplnx/DataStructure/Geometry/RectGridGeom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp index 3dbb780a6e..558609ad96 100644 --- a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp +++ b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp @@ -550,9 +550,9 @@ std::pair RectGridGeom::getCellBounds(usize x, usize y, usiz const auto& zBnds = getZBoundsRef(); Point3Df minCoords; - minCoords[0] = static_cast((*xBnds)[x]); - minCoords[1] = static_cast((*yBnds)[y]); - minCoords[2] = static_cast((*zBnds)[z]); + minCoords[0] = static_cast(xBnds[x]); + minCoords[1] = static_cast(yBnds[y]); + minCoords[2] = static_cast(zBnds[z]); Point3Df maxCoords; maxCoords[0] = (*xBnds)[x + 1];