restore coherent orientation of faces (#8791)

This has been broken in 6.0
This commit is contained in:
Sebastien Loriot 2025-03-24 11:43:10 +01:00 committed by GitHub
commit bcdd46aed5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ void facets_in_complex_3_to_triangle_soup(const C3T3& c3t3,
resize(f, 3); resize(f, 3);
std::size_t i = 0; std::size_t i = 0;
for(typename Tr::Vertex_handle v : c3t3.triangulation().vertices(Facet(c, s))) for(typename Tr::Vertex_handle v : c3t3.triangulation().vertices(fit))
{ {
CGAL_assertion(v != typename Tr::Vertex_handle()); CGAL_assertion(v != typename Tr::Vertex_handle());
CGAL_assertion(!c3t3.triangulation().is_infinite(v)); CGAL_assertion(!c3t3.triangulation().is_infinite(v));
@ -128,12 +128,12 @@ void facets_in_complex_3_to_triangle_soup(const C3T3& c3t3,
if(export_all_facets) if(export_all_facets)
{ {
if((cell_sdi > opp_sdi) == (s%2 == 1)) if(cell_sdi > opp_sdi)
std::swap(f[0], f[1]); std::swap(f[0], f[1]);
} }
else else
{ {
if(((cell_sdi == sd_index) == (s%2 == 1)) == normals_point_outside_of_the_subdomain) if( (cell_sdi == sd_index) == normals_point_outside_of_the_subdomain)
std::swap(f[0], f[1]); std::swap(f[0], f[1]);
} }