diff --git a/src/geode/mesh/helpers/convert_solid_mesh.cpp b/src/geode/mesh/helpers/convert_solid_mesh.cpp index 81e6378e0..aa878e97a 100644 --- a/src/geode/mesh/helpers/convert_solid_mesh.cpp +++ b/src/geode/mesh/helpers/convert_solid_mesh.cpp @@ -259,8 +259,12 @@ namespace { continue; } - const auto hex_id = builder.create_hexahedron( - grid_cell_vertices( grid, { i, j, k } ) ); + const auto vertices = + grid_cell_vertices( grid, { i, j, k } ); + const auto hex_id = + builder.create_hexahedron( { vertices[0], vertices[1], + vertices[3], vertices[2], vertices[4], vertices[5], + vertices[7], vertices[6] } ); old2new_mapping.map( cell_id, hex_id ); } }