Change normals of CDT_2s...

... honestly that does not change anything!
This commit is contained in:
Laurent Rineau 2023-03-20 16:34:49 +01:00
parent b561b86133
commit f32f9f0da1
1 changed files with 4 additions and 4 deletions

View File

@ -400,10 +400,10 @@ public:
cross_product(vector(last_point, tr.point(*vit)),
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.x() > 0)
if (accumulated_normal.x() < 0 ||
(accumulated_normal.x() == 0 && accumulated_normal.y() < 0) ||
(accumulated_normal.x() == 0 && accumulated_normal.y() == 0 &&
accumulated_normal.z() < 0)
)
{
accumulated_normal = - accumulated_normal;