Skip to content

Commit bed265d

Browse files
author
tpat
committed
Added variable to make loop more readable
1 parent 0d82115 commit bed265d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Graphics/Glyphs/GlyphGeom.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,8 @@ void GlyphGeom::generateBox(const Point& center, Tensor& t, double scale, ColorR
807807
{
808808
for(int z = -1; z < 2; z+=2)
809809
{
810-
points.push_back(Vector(trans * Point(x * eigvals.x(), y * eigvals.y(), z * eigvals.z())));
810+
Point translated_point = trans * Point(x * eigvals.x(), y * eigvals.y(), z * eigvals.z());
811+
points.push_back(Vector(translated_point));
811812
}
812813
}
813814
}

0 commit comments

Comments
 (0)