We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df36d3 commit 8bab023Copy full SHA for 8bab023
1 file changed
src/geode/mesh/core/surface_mesh.cpp
@@ -1209,14 +1209,9 @@ namespace geode
1209
const auto polygon_id = polygon.polygon_id;
1210
if( const auto p_normal = polygon_normal( polygon_id ) )
1211
{
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() );
1216
const auto previous_vertex =
1217
- this->previous_polygon_vertex( polygon_vertex );
1218
- const auto next_vertex =
1219
- this->next_polygon_vertex( polygon_vertex );
+ this->previous_polygon_vertex( polygon );
+ const auto next_vertex = this->next_polygon_vertex( polygon );
1220
const Vector3D prev{ this->point( this->polygon_vertex(
1221
previous_vertex ) ),
1222
this->point( vertex_id ) };
0 commit comments