b572588fc5
Previously, colored polygons were stored so that each polygon had a color assigned to it, which made it difficult to perform operations like union or so on all polygons of the same color. Now polygons are stored grouped by their assigned color/extruder.
19 lines
499 B
C++
19 lines
499 B
C++
#ifndef slic3r_MultiMaterialSegmentation_hpp_
|
|
#define slic3r_MultiMaterialSegmentation_hpp_
|
|
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
class PrintObject;
|
|
class ExPolygon;
|
|
|
|
// 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);
|
|
|
|
} // namespace Slic3r
|
|
|
|
#endif // slic3r_MultiMaterialSegmentation_hpp_
|