SPE-2202: Reimplementation of the projection algorithm of painted mesh on slices inside multi-material segmentation.

This new implementation should resolve several types of artifacts with multi-material segmentation.
It should also increase the precision of projection, so sliced models should be much closer to how they were painted.

Also, the slicing of painted models should be faster than before.
This commit is contained in:
Lukáš Hejl 2024-06-26 02:51:33 +02:00 committed by Lukas Matena
parent baf3d6aed9
commit 4f7c8ae83d
2 changed files with 762 additions and 769 deletions

File diff suppressed because it is too large Load Diff

View File

@ -35,6 +35,8 @@ using ColoredLines = std::vector<ColoredLine>;
// Returns MMU segmentation based on painting in MMU segmentation gizmo
std::vector<std::vector<ExPolygons>> multi_material_segmentation_by_painting(const PrintObject &print_object, const std::function<void()> &throw_on_cancel_callback);
BoundingBox get_extents(const std::vector<ColoredLines> &colored_polygons);
} // namespace Slic3r
namespace boost::polygon {