Skip to content

Commit

Permalink
fix(Mesh): fix vertex order in conversion from a grid to an hybrid solid
Browse files Browse the repository at this point in the history
  • Loading branch information
panquez committed Nov 12, 2024
1 parent 0d0e22f commit e3f256d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/geode/mesh/helpers/convert_solid_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit e3f256d

Please sign in to comment.