mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 06:41:14 -06:00
ENH: CLI: add logic to recompute flush volume matrix for mmu
Change-Id: Id9ce0cc054492762da31d2bd9dea53c73421d972
This commit is contained in:
parent
a38b017ce5
commit
b9afbd92c3
5 changed files with 250 additions and 81 deletions
34
src/libslic3r/FlushVolCalc.hpp
Normal file
34
src/libslic3r/FlushVolCalc.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef slic3r_FlushVolCalc_hpp_
|
||||
#define slic3r_FlushVolCalc_hpp_
|
||||
|
||||
#include "libslic3r.h"
|
||||
#include "Config.hpp"
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
extern const int g_min_flush_volume_from_support;
|
||||
extern const int g_flush_volume_to_support;
|
||||
extern const int g_max_flush_volume;
|
||||
|
||||
class FlushVolCalculator
|
||||
{
|
||||
public:
|
||||
FlushVolCalculator(int min, int max, float multiplier = 1.0f);
|
||||
~FlushVolCalculator()
|
||||
{
|
||||
}
|
||||
|
||||
int calc_flush_vol(unsigned char src_a, unsigned char src_r, unsigned char src_g, unsigned char src_b,
|
||||
unsigned char dst_a, unsigned char dst_r, unsigned char dst_g, unsigned char dst_b);
|
||||
|
||||
private:
|
||||
int m_min_flush_vol;
|
||||
int m_max_flush_vol;
|
||||
float m_multiplier;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue