File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -191,17 +191,21 @@ namespace
191191 const geode::SolidMesh< dimension >& solid,
192192 const std::array< geode::index_t , 2 >& vertices )
193193 {
194- for ( const auto & polyhedron :
195- solid.polyhedra_around_vertex ( vertices[0 ] ) )
194+ for ( const auto vertex : vertices )
196195 {
197- for ( const auto & edge_vertices :
198- solid.polyhedron_edges_vertices ( polyhedron. polyhedron_id ) )
196+ for ( const auto & polyhedron :
197+ solid.polyhedra_around_vertex ( vertex ) )
199198 {
200- if ( vertices == edge_vertices
201- || ( vertices[ 0 ] == edge_vertices[ 1 ]
202- && vertices[ 1 ] == edge_vertices[ 0 ] ) )
199+ for ( const auto & edge_vertices :
200+ solid. polyhedron_edges_vertices (
201+ polyhedron. polyhedron_id ) )
203202 {
204- return polyhedron.polyhedron_id ;
203+ if ( vertices == edge_vertices
204+ || ( vertices[0 ] == edge_vertices[1 ]
205+ && vertices[1 ] == edge_vertices[0 ] ) )
206+ {
207+ return polyhedron.polyhedron_id ;
208+ }
205209 }
206210 }
207211 }
You can’t perform that action at this time.
0 commit comments