mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 00:21:56 -05:00
ENH:Obj import supports up to 32 colors
jira: STUDIO-10927 Change-Id: I46b2c63a625f91d0caafa78cf47bf0fc8589015b (cherry picked from commit 9e2bfb7d7e56d886a85c0ee8c0e90dbc6ccfa932)
This commit is contained in:
1 parent
7ca7ca18fb
commit
c333cb58d9
5 files changed
+57
-39
No files matched your search
@@ -3,10 +3,11 @@
|
||||
bool obj_color_deal_algo(std::vector<Slic3r::RGBA> & input_colors,
|
||||
std::vector<Slic3r::RGBA> & cluster_colors_from_algo,
|
||||
std::vector<int> & cluster_labels_from_algo,
|
||||
char & cluster_number)
|
||||
char & cluster_number,
|
||||
int max_cluster)
|
||||
{
|
||||
QuantKMeans quant(10);
|
||||
quant.apply(input_colors, cluster_colors_from_algo, cluster_labels_from_algo, (int) cluster_number);
|
||||
quant.apply(input_colors, cluster_colors_from_algo, cluster_labels_from_algo, (int) cluster_number, max_cluster);
|
||||
if (cluster_number == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user