mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Removed Print.pm,
ported execution of post processing scripts into C++ (WIP, waits for update of boost::system module on our build server) Removed other mention of the "Controller".
This commit is contained in:
parent
bb7f504296
commit
d934b63424
19 changed files with 124 additions and 126 deletions
|
@ -1331,8 +1331,15 @@ std::string Print::output_filepath(const std::string &path) const
|
|||
return path;
|
||||
}
|
||||
|
||||
void Print::print_to_png(const std::string &dirpath)
|
||||
void Print::export_png(const std::string &dirpath)
|
||||
{
|
||||
size_t idx = 0;
|
||||
for (PrintObject *obj : m_objects) {
|
||||
obj->slice();
|
||||
this->set_status(int(floor(idx * 100. / m_objects.size() + 0.5)), "Slicing...");
|
||||
++ idx;
|
||||
}
|
||||
this->set_status(90, "Exporting zipped archive...");
|
||||
print_to<FilePrinterFormat::PNG>(*this,
|
||||
dirpath,
|
||||
float(m_config.bed_size_x.value),
|
||||
|
@ -1341,6 +1348,7 @@ void Print::print_to_png(const std::string &dirpath)
|
|||
int(m_config.pixel_height.value),
|
||||
float(m_config.exp_time.value),
|
||||
float(m_config.exp_time_first.value));
|
||||
this->set_status(100, "Done.");
|
||||
}
|
||||
|
||||
// Returns extruder this eec should be printed with, according to PrintRegion config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue