mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Model centered when exporting to png. Added some comments to the rasterization.
This commit is contained in:
parent
0f552832da
commit
6b5c0073a7
4 changed files with 122 additions and 81 deletions
|
@ -316,14 +316,17 @@ public:
|
|||
};
|
||||
|
||||
template<FilePrinterFormat format, class...Args>
|
||||
void print_to(std::string dirpath, Args...args);
|
||||
void print_to(std::string dirpath,
|
||||
double width_mm,
|
||||
double height_mm,
|
||||
Args...args);
|
||||
|
||||
void print_to_png(std::string dirpath, long width_px, long height_px,
|
||||
double width_mm, double height_mm);
|
||||
|
||||
void print_to_png(std::string dirpath) {
|
||||
// Where should this be specified?
|
||||
print_to_png(dirpath, 1440, 2560, 40.0, 72.0);
|
||||
// Will need some GUI dialogue perhaps for these to be specified.
|
||||
print_to_png(dirpath, 1440, 2560, 68.0, 120.0);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue