mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
integration of time estimator into gcode export - save time estimation into gcode file
This commit is contained in:
parent
092d271fa2
commit
a0a503e4a8
4 changed files with 148 additions and 31 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef slic3r_GCode_hpp_
|
||||
#define slic3r_GCode_hpp_
|
||||
|
||||
#define ENABLE_TIME_ESTIMATOR 1
|
||||
|
||||
#include "libslic3r.h"
|
||||
#include "ExPolygon.hpp"
|
||||
#include "GCodeWriter.hpp"
|
||||
|
@ -15,6 +17,9 @@
|
|||
#include "GCode/SpiralVase.hpp"
|
||||
#include "GCode/ToolOrdering.hpp"
|
||||
#include "GCode/WipeTower.hpp"
|
||||
#if ENABLE_TIME_ESTIMATOR
|
||||
#include "GCodeTimeEstimator.hpp"
|
||||
#endif // ENABLE_TIME_ESTIMATOR
|
||||
#include "EdgeGrid.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
@ -267,6 +272,11 @@ protected:
|
|||
// Index of a last object copy extruded.
|
||||
std::pair<const PrintObject*, Point> m_last_obj_copy;
|
||||
|
||||
#if ENABLE_TIME_ESTIMATOR
|
||||
// Time estimator
|
||||
GCodeTimeEstimator m_time_estimator;
|
||||
#endif // ENABLE_TIME_ESTIMATOR
|
||||
|
||||
std::string _extrude(const ExtrusionPath &path, std::string description = "", double speed = -1);
|
||||
void _print_first_layer_extruder_temperatures(FILE *file, Print &print, unsigned int first_printing_extruder_id, bool wait);
|
||||
// this flag triggers first layer speeds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue