Skip to content

Commit d79c0b3

Browse files
committed
Review changes
1 parent 04f7dd8 commit d79c0b3

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

src/geode/mesh/core/tetrahedral_solid.cpp

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -409,27 +409,12 @@ namespace geode
409409
TetrahedralSolid< dimension >::polyhedron_edges(
410410
index_t polyhedron ) const
411411
{
412-
std::array< PolyhedronFacetEdge, 6 > result;
413-
const auto vertices = this->polyhedron_vertices( polyhedron );
414-
result[0] = this->polyhedron_facet_edge_from_vertices(
415-
{ vertices[0], vertices[1] }, polyhedron )
416-
.value();
417-
result[1] = this->polyhedron_facet_edge_from_vertices(
418-
{ vertices[0], vertices[2] }, polyhedron )
419-
.value();
420-
result[2] = this->polyhedron_facet_edge_from_vertices(
421-
{ vertices[0], vertices[3] }, polyhedron )
422-
.value();
423-
result[3] = this->polyhedron_facet_edge_from_vertices(
424-
{ vertices[1], vertices[2] }, polyhedron )
425-
.value();
426-
result[4] = this->polyhedron_facet_edge_from_vertices(
427-
{ vertices[1], vertices[3] }, polyhedron )
428-
.value();
429-
result[5] = this->polyhedron_facet_edge_from_vertices(
430-
{ vertices[2], vertices[3] }, polyhedron )
431-
.value();
432-
return result;
412+
return { PolyhedronFacetEdge{ { polyhedron, 0 }, 0 },
413+
PolyhedronFacetEdge{ { polyhedron, 0 }, 1 },
414+
PolyhedronFacetEdge{ { polyhedron, 0 }, 2 },
415+
PolyhedronFacetEdge{ { polyhedron, 1 }, 0 },
416+
PolyhedronFacetEdge{ { polyhedron, 1 }, 0 },
417+
PolyhedronFacetEdge{ { polyhedron, 2 }, 1 } };
433418
}
434419

435420
template < index_t dimension >

0 commit comments

Comments
 (0)