mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
enh: Remap filament (#12016)
# Description This Pr improve the Remap filament feature. It now recognizes the filaments used in the object and makes them available only for remapping. You can also see a small preview, showing which color will be changed to which. Before PR:  After PR: 
This commit is contained in:
@@ -2197,4 +2197,15 @@ bool TriangleSelector::Capsule2D::is_edge_inside_cursor(const Triangle &tr, cons
|
||||
return false;
|
||||
}
|
||||
|
||||
// ORCA: Helper to extract used states from serialized data
|
||||
std::vector<EnforcerBlockerType> TriangleSelector::extract_used_facet_states(const TriangleSplittingData &data)
|
||||
{
|
||||
std::vector<EnforcerBlockerType> out;
|
||||
for (size_t i = 0; i < data.used_states.size(); ++i) {
|
||||
if (data.used_states[i])
|
||||
out.push_back(static_cast<EnforcerBlockerType>(i));
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
Reference in New Issue
Block a user