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.
2 parents 15f0ae0 + 7423cfe commit dfcb522Copy full SHA for dfcb522
src/geode/mesh/core/solid_mesh.cpp
@@ -908,10 +908,6 @@ namespace geode
908
max_area_facet = f;
909
}
910
911
- if( max_area < GLOBAL_EPSILON )
912
- {
913
- return true;
914
- }
915
const auto vertices = polyhedron_vertices( polyhedron_id );
916
const auto normal =
917
polyhedron_facet_normal( { polyhedron_id, max_area_facet } );
@@ -924,8 +920,7 @@ namespace geode
924
920
Plane plane{ normal.value(), this->point( facet_vertices[0] ) };
925
921
for( const auto vertex_id : vertices )
926
922
{
927
- if( absl::c_find( facet_vertices, vertex_id )
928
- != facet_vertices.end() )
923
+ if( absl::c_contains( facet_vertices, vertex_id ) )
929
930
continue;
931
0 commit comments