3939namespace
4040{
4141 static constexpr std::array< std::array< geode::local_index_t , 3 >, 8 >
42- cell_vertices_translations{ { { 0 , 0 , 0 }, { 1 , 0 , 0 }, { 0 , 1 , 0 },
43- { 1 , 1 , 0 }, { 0 , 0 , 1 }, { 1 , 0 , 1 }, { 0 , 1 , 1 }, { 1 , 1 , 1 } } };
42+ solid_cell_vertices_translations{ { { 0 , 0 , 0 }, { 1 , 0 , 0 },
43+ { 0 , 1 , 0 }, { 1 , 1 , 0 }, { 0 , 0 , 1 }, { 1 , 0 , 1 }, { 0 , 1 , 1 },
44+ { 1 , 1 , 1 } } };
4445
4546 // -X +X -Y +Y -Z +Z
4647 static constexpr std::array< std::array< geode::local_index_t , 4 >, 6 >
47- cell_facet_vertices { { { 0 , 2 , 6 , 4 }, { 1 , 5 , 7 , 3 }, { 0 , 4 , 5 , 1 },
48- { 2 , 3 , 7 , 6 }, { 0 , 1 , 3 , 2 }, { 4 , 6 , 7 , 5 } } };
48+ solid_cell_facet_vertices { { { 0 , 2 , 6 , 4 }, { 1 , 5 , 7 , 3 },
49+ { 0 , 4 , 5 , 1 }, { 2 , 3 , 7 , 6 }, { 0 , 1 , 3 , 2 }, { 4 , 6 , 7 , 5 } } };
4950} // namespace
5051
5152namespace geode
@@ -81,7 +82,8 @@ namespace geode
8182 for ( const auto d : LRange{ 3 } )
8283 {
8384 cell_vertex[d] +=
84- cell_vertices_translations[polyhedron_vertex.vertex_id ][d];
85+ solid_cell_vertices_translations[polyhedron_vertex
86+ .vertex_id ][d];
8587 }
8688 return vertex_index ( grid, cell_vertex );
8789 }
@@ -91,8 +93,8 @@ namespace geode
9193 {
9294 const auto & facet = polyhedron_facet_vertex.polyhedron_facet ;
9395 const auto vertex =
94- cell_facet_vertices [facet.facet_id ]
95- [polyhedron_facet_vertex.vertex_id ];
96+ solid_cell_facet_vertices [facet.facet_id ]
97+ [polyhedron_facet_vertex.vertex_id ];
9698 return { facet.polyhedron_id , vertex };
9799 }
98100
0 commit comments