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 ef1a9b4 commit aedc4e4Copy full SHA for aedc4e4
src/geode/inspector/criterion/negative_elements/surface_negative_elements.cpp
@@ -71,16 +71,8 @@ namespace geode
71
private:
72
bool polygon_has_negative_area( index_t polygon_id ) const
73
{
74
- if( mesh_.nb_polygon_vertices( polygon_id ) == 4 )
75
- {
76
- Triangle< dimension > triangle{
77
- mesh_.point( mesh_.polygon_vertex( { polygon_id, 0 } ) ),
78
- mesh_.point( mesh_.polygon_vertex( { polygon_id, 1 } ) ),
79
- mesh_.point( mesh_.polygon_vertex( { polygon_id, 2 } ) )
80
- };
81
- return triangle_area_sign( triangle ) == Sign::negative;
82
- }
83
- return mesh_.polygon_area( polygon_id ) < 0;
+ return polygon_area_sign( mesh_.polygon( polygon_id ) )
+ == Sign::negative;
84
}
85
86
0 commit comments