mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 02:41:17 +00:00
Rearrange code a little bit to make it more reusable
This commit is contained in:
@@ -878,6 +878,24 @@ public:
|
||||
// List of mesh facets painted for fuzzy skin.
|
||||
FacetsAnnotation fuzzy_skin_facets;
|
||||
|
||||
// Save painting data before reset_extra_facets() discards it.
|
||||
// Used for replacing mesh without losing painting data.
|
||||
// Only for model parts (not modifiers/connectors).
|
||||
std::optional<TriangleSelector::SavedPainting> save_painting() const
|
||||
{
|
||||
if (is_any_painted() && is_model_part() && !mesh().empty()) {
|
||||
TriangleSelector::SavedPainting sp;
|
||||
sp.mesh = mesh();
|
||||
sp.supported = supported_facets.get_data();
|
||||
sp.seam = seam_facets.get_data();
|
||||
sp.mmu = mmu_segmentation_facets.get_data();
|
||||
sp.fuzzy = fuzzy_skin_facets.get_data();
|
||||
return sp;
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// BBS: quick access for volume extruders, 1 based
|
||||
mutable std::vector<int> mmuseg_extruders;
|
||||
mutable Timestamp mmuseg_ts;
|
||||
|
||||
Reference in New Issue
Block a user