Fix of filtering trinagles for reflected projection
This commit is contained in:
parent
fbd39e376b
commit
454363fe2c
1 changed files with 9 additions and 0 deletions
|
@ -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…
Reference in a new issue