Skip to content

Commit dfcb522

Browse files
Merge pull request #1101 from Geode-solutions/fix/solid-degen-area
fix(SolidMesh): remove wrong test in degenerated check
2 parents 15f0ae0 + 7423cfe commit dfcb522

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/geode/mesh/core/solid_mesh.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -908,10 +908,6 @@ namespace geode
908908
max_area_facet = f;
909909
}
910910
}
911-
if( max_area < GLOBAL_EPSILON )
912-
{
913-
return true;
914-
}
915911
const auto vertices = polyhedron_vertices( polyhedron_id );
916912
const auto normal =
917913
polyhedron_facet_normal( { polyhedron_id, max_area_facet } );
@@ -924,8 +920,7 @@ namespace geode
924920
Plane plane{ normal.value(), this->point( facet_vertices[0] ) };
925921
for( const auto vertex_id : vertices )
926922
{
927-
if( absl::c_find( facet_vertices, vertex_id )
928-
!= facet_vertices.end() )
923+
if( absl::c_contains( facet_vertices, vertex_id ) )
929924
{
930925
continue;
931926
}

0 commit comments

Comments
 (0)