Different choice of normal, not really better

- perfect for `cube_quad.off`,
- but not for `mpi.off`.

The truth is out there.
This commit is contained in:
Laurent Rineau 2023-01-27 16:12:10 +01:00
parent 5c23c1ce11
commit e25ecbe424
2 changed files with 6 additions and 6 deletions

8
.gitignore vendored
View File

@ -1212,8 +1212,8 @@ gmon.*
Polygonal_surface_reconstruction/examples/build*
Polygonal_surface_reconstruction/test/build*
Solver_interface/examples/build*
dump-bug_point.xyz
dump-bug.binary.cgal
dump_region_with_size_2.polylines.txt
dump_region.polylines.txt
dump-*.xyz
dump-*.binary.cgal
dump_*.txt
dump_*.off
all_segments.polylines.txt

View File

@ -373,9 +373,9 @@ public:
vector(last_point, tr.point(*next_it))));
}
if (accumulated_normal.z() < 0 ||
(accumulated_normal.z() == 0 && accumulated_normal.y() < 0) ||
(accumulated_normal.z() == 0 && accumulated_normal.y() > 0) ||
(accumulated_normal.z() == 0 && accumulated_normal.y() == 0 &&
accumulated_normal.x() < 0)
accumulated_normal.x() > 0)
)
{
accumulated_normal = - accumulated_normal;