Fix for bad arrange with mirrored objects

This commit is contained in:
tamasmeszaros 2019-01-03 14:20:01 +01:00
parent b099d5c05e
commit 8a3d2f385f
3 changed files with 15 additions and 7 deletions

View file

@ -1117,7 +1117,9 @@ bool SLASupportTree::generate(const PointSet &points,
head_norm.row(pcount) = nn;
++pcount;
} else {
} else if( polar >= 3*PI/4 ) {
// Headless supports do not tilt like the headed ones so
// the normal should point almost to the ground.
headless_norm.row(hlcount) = nn;
headless_pos.row(hlcount++) = hp;
}