bug fix: using trafo() instead of trafo_centred() caused
misalignment between occlusion mesh and seam candidates
This commit is contained in:
parent
2274965079
commit
c640fb854f
@ -541,7 +541,7 @@ void compute_global_occlusion(GlobalModelInfo &result, const PrintObject *po) {
|
|||||||
BOOST_LOG_TRIVIAL(debug)
|
BOOST_LOG_TRIVIAL(debug)
|
||||||
<< "SeamPlacer: build AABB tree for raycasting and gather occlusion info: start";
|
<< "SeamPlacer: build AABB tree for raycasting and gather occlusion info: start";
|
||||||
// Build AABB tree for raycasting
|
// Build AABB tree for raycasting
|
||||||
auto obj_transform = po->trafo();
|
auto obj_transform = po->trafo_centered();
|
||||||
indexed_triangle_set triangle_set;
|
indexed_triangle_set triangle_set;
|
||||||
//add all parts
|
//add all parts
|
||||||
for (const ModelVolume *model_volume : po->model_object()->volumes) {
|
for (const ModelVolume *model_volume : po->model_object()->volumes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user