bug fix: using trafo() instead of trafo_centred() caused

misalignment between occlusion mesh and seam candidates
This commit is contained in:
PavelMikus 2022-03-09 12:02:18 +01:00
parent 2274965079
commit c640fb854f

View File

@ -541,7 +541,7 @@ void compute_global_occlusion(GlobalModelInfo &result, const PrintObject *po) {
BOOST_LOG_TRIVIAL(debug)
<< "SeamPlacer: build AABB tree for raycasting and gather occlusion info: start";
// Build AABB tree for raycasting
auto obj_transform = po->trafo();
auto obj_transform = po->trafo_centered();
indexed_triangle_set triangle_set;
//add all parts
for (const ModelVolume *model_volume : po->model_object()->volumes) {