Skip to content

Commit 8bab023

Browse files
committed
review
1 parent 8df36d3 commit 8bab023

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/geode/mesh/core/surface_mesh.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,14 +1209,9 @@ namespace geode
12091209
const auto polygon_id = polygon.polygon_id;
12101210
if( const auto p_normal = polygon_normal( polygon_id ) )
12111211
{
1212-
const auto local_id =
1213-
this->vertex_in_polygon( polygon_id, vertex_id );
1214-
const auto polygon_vertex =
1215-
PolygonVertex( polygon_id, local_id.value() );
12161212
const auto previous_vertex =
1217-
this->previous_polygon_vertex( polygon_vertex );
1218-
const auto next_vertex =
1219-
this->next_polygon_vertex( polygon_vertex );
1213+
this->previous_polygon_vertex( polygon );
1214+
const auto next_vertex = this->next_polygon_vertex( polygon );
12201215
const Vector3D prev{ this->point( this->polygon_vertex(
12211216
previous_vertex ) ),
12221217
this->point( vertex_id ) };

0 commit comments

Comments
 (0)