mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 18:55:54 +08:00
Fix of filtering trinagles for reflected projection
This commit is contained in:
parent
fbd39e376b
commit
454363fe2c
@ -768,6 +768,15 @@ void priv::set_skip_for_out_of_aoi(std::vector<bool> &skip_indicies,
|
|||||||
|
|
||||||
point_normals[i] = {p1, normal};
|
point_normals[i] = {p1, normal};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check that projection is not left handed
|
||||||
|
// Fix for reflected projection
|
||||||
|
if (is_out_of(point_normals[2].first, point_normals[0])) {
|
||||||
|
// projection is reflected so normals are reflected
|
||||||
|
for (auto &pn : point_normals)
|
||||||
|
pn.second *= -1;
|
||||||
|
}
|
||||||
|
|
||||||
// same meaning as point normal
|
// same meaning as point normal
|
||||||
IsOnSides is_on_sides(its.vertices.size(), {false,false,false,false});
|
IsOnSides is_on_sides(its.vertices.size(), {false,false,false,false});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user