mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 21:09:06 +08:00
WIP Tree supports with circular crossections: Clipping the remaining
collisions with the object.
This commit is contained in:
parent
5cb4b63325
commit
418734f41b
@ -3537,6 +3537,16 @@ static void draw_branches(
|
|||||||
append(l->polygons, to_polygons(std::move(slices[layer_idx])));
|
append(l->polygons, to_polygons(std::move(slices[layer_idx])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Trim the slices.
|
||||||
|
tbb::parallel_for(tbb::blocked_range<size_t>(0, intermediate_layers.size()),
|
||||||
|
[&](const tbb::blocked_range<size_t> &range) {
|
||||||
|
for (size_t layer_idx = range.begin(); layer_idx < range.end(); ++ layer_idx)
|
||||||
|
if (SupportGeneratorLayer *layer = intermediate_layers[layer_idx]; layer) {
|
||||||
|
Polygons &poly = intermediate_layers[layer_idx]->polygons;
|
||||||
|
poly = diff_clipped(poly, volumes.getCollision(0, layer_idx, true));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
finalize_interface_and_support_areas(print_object, volumes, config, overhangs, support_layer_storage, support_roof_storage,
|
finalize_interface_and_support_areas(print_object, volumes, config, overhangs, support_layer_storage, support_roof_storage,
|
||||||
bottom_contacts, top_contacts, intermediate_layers, layer_storage);
|
bottom_contacts, top_contacts, intermediate_layers, layer_storage);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user