mirror of https://github.com/CGAL/cgal
restore coherant orientation of faces
This commit is contained in:
parent
46a4ddb88f
commit
652f35794d
|
|
@ -106,7 +106,7 @@ void facets_in_complex_3_to_triangle_soup(const C3T3& c3t3,
|
|||
resize(f, 3);
|
||||
|
||||
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(!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((cell_sdi > opp_sdi) == (s%2 == 1))
|
||||
if(cell_sdi > opp_sdi)
|
||||
std::swap(f[0], f[1]);
|
||||
}
|
||||
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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue