◆ adjustable_time()
| float Slic3r::PerExtruderAdjustments::adjustable_time |
( |
bool |
slowdown_external_perimeters | ) |
const |
|
inline |
126 {
128 for (
const CoolingLine &line :
lines)
129 if (line.adjustable(slowdown_external_perimeters))
132 }
if(!(yy_init))
Definition lexer.c:1190
std::vector< CoolingLine > lines
Definition CoolingBuffer.cpp:232
float time_total
Definition CoolingBuffer.cpp:239
References lines, and time_total.
◆ elapsed_time_total()
| float Slic3r::PerExtruderAdjustments::elapsed_time_total |
( |
| ) |
const |
|
inline |
◆ maximum_time_after_slowdown()
| float Slic3r::PerExtruderAdjustments::maximum_time_after_slowdown |
( |
bool |
slowdown_external_perimeters | ) |
const |
|
inline |
113 {
115 for (
const CoolingLine &line :
lines)
116 if (line.adjustable(slowdown_external_perimeters)) {
117 if (line.time_max == FLT_MAX)
118 return FLT_MAX;
119 else
121 } else
124 }
References lines, and time_total.
◆ non_adjustable_time()
| float Slic3r::PerExtruderAdjustments::non_adjustable_time |
( |
bool |
slowdown_external_perimeters | ) |
const |
|
inline |
134 {
136 for (
const CoolingLine &line :
lines)
137 if (! line.adjustable(slowdown_external_perimeters))
140 }
References lines, and time_total.
◆ slow_down_proportional()
| float Slic3r::PerExtruderAdjustments::slow_down_proportional |
( |
float |
factor, |
|
|
bool |
slowdown_external_perimeters |
|
) |
| |
|
inline |
159 {
160 assert(factor >= 1.f);
162 for (CoolingLine &line :
lines) {
163 if (line.adjustable(slowdown_external_perimeters)) {
164 line.slowdown = true;
165 line.time = std::min(line.time_max, line.time * factor);
166 assert(line.time > 0);
167 line.feedrate = line.length / line.time;
168 }
170 }
172 }
References lines, and time_total.
◆ slow_down_to_feedrate()
| void Slic3r::PerExtruderAdjustments::slow_down_to_feedrate |
( |
float |
min_feedrate | ) |
|
|
inline |
◆ slowdown_to_minimum_feedrate()
| float Slic3r::PerExtruderAdjustments::slowdown_to_minimum_feedrate |
( |
bool |
slowdown_external_perimeters | ) |
|
|
inline |
143 {
145 for (CoolingLine &line :
lines) {
146 if (line.adjustable(slowdown_external_perimeters)) {
147 assert(line.time_max >= 0.f && line.time_max < FLT_MAX);
148 line.slowdown = true;
149 line.time = line.time_max;
150 assert(line.time > 0);
151 line.feedrate = line.length / line.time;
152 }
154 }
156 }
References lines, and time_total.
◆ sort_lines_by_decreasing_feedrate()
| void Slic3r::PerExtruderAdjustments::sort_lines_by_decreasing_feedrate |
( |
| ) |
|
|
inline |
176 {
177 std::sort(
lines.begin(),
lines.end(), [](
const CoolingLine &l1,
const CoolingLine &
l2) {
178 bool adj1 = l1.adjustable();
179 bool adj2 = l2.adjustable();
180 return (adj1 == adj2) ? l1.feedrate > l2.feedrate : adj1;
181 });
188 }
T l2(const boost::geometry::model::d2::point_xy< T > &v)
Definition ExtrusionSimulator.cpp:166
float time_non_adjustable
Definition CoolingBuffer.cpp:237
References Slic3r::l2(), lines, n_lines_adjustable, and time_non_adjustable.
◆ time_stretch_when_slowing_down_to_feedrate()
| float Slic3r::PerExtruderAdjustments::time_stretch_when_slowing_down_to_feedrate |
( |
float |
min_feedrate | ) |
const |
|
inline |
◆ cooling_slow_down_enabled
| bool Slic3r::PerExtruderAdjustments::cooling_slow_down_enabled = false |
◆ extruder_id
| unsigned int Slic3r::PerExtruderAdjustments::extruder_id = 0 |
◆ idx_line_begin
| size_t Slic3r::PerExtruderAdjustments::idx_line_begin = 0 |
◆ idx_line_end
| size_t Slic3r::PerExtruderAdjustments::idx_line_end = 0 |
◆ lines
| std::vector<CoolingLine> Slic3r::PerExtruderAdjustments::lines |
◆ min_print_speed
| float Slic3r::PerExtruderAdjustments::min_print_speed = 0.f |
◆ n_lines_adjustable
| size_t Slic3r::PerExtruderAdjustments::n_lines_adjustable = 0 |
◆ slowdown_below_layer_time
| float Slic3r::PerExtruderAdjustments::slowdown_below_layer_time = 0.f |
◆ time_maximum
| float Slic3r::PerExtruderAdjustments::time_maximum = 0 |
◆ time_non_adjustable
| float Slic3r::PerExtruderAdjustments::time_non_adjustable = 0 |
◆ time_total
| float Slic3r::PerExtruderAdjustments::time_total = 0 |
The documentation for this struct was generated from the following file: