◆ adjustable_time()
| float Slic3r::PerExtruderAdjustments::adjustable_time |
( |
bool | slowdown_external_perimeters | ) |
const |
|
inline |
156 {
158 for (
const CoolingLine &line :
lines)
159 if (line.adjustable(slowdown_external_perimeters))
162 }
std::vector< CoolingLine > lines
Definition CoolingBuffer.cpp:267
float time_total
Definition CoolingBuffer.cpp:274
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 |
143 {
145 for (
const CoolingLine &line :
lines)
146 if (line.adjustable(slowdown_external_perimeters)) {
147 if (line.time_max == FLT_MAX)
148 return FLT_MAX;
149 else
151 } else
154 }
References lines, and time_total.
◆ non_adjustable_time()
| float Slic3r::PerExtruderAdjustments::non_adjustable_time |
( |
bool | slowdown_external_perimeters | ) |
const |
|
inline |
164 {
166 for (
const CoolingLine &line :
lines)
167 if (! line.adjustable(slowdown_external_perimeters))
170 }
References lines, and time_total.
◆ slow_down_proportional()
| float Slic3r::PerExtruderAdjustments::slow_down_proportional |
( |
float | factor, |
|
|
bool | slowdown_external_perimeters ) |
|
inline |
190 {
191 assert(factor >= 1.f);
193 for (CoolingLine &line :
lines) {
194 if (line.adjustable(slowdown_external_perimeters)) {
195 line.slowdown = true;
196 line.time = std::min(line.time_max, line.time * factor);
197 if (line.time > 0.f)
198 line.feedrate = line.length / line.time;
199 }
201 }
204 }
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 |
173 {
175 for (CoolingLine &line :
lines) {
176 if (line.adjustable(slowdown_external_perimeters)) {
177 assert(line.time_max >= 0.f && line.time_max < FLT_MAX);
178 line.slowdown = true;
179 line.time = line.time_max;
180 if (line.time > 0.f)
181 line.feedrate = line.length / line.time;
182 }
184 }
187 }
References lines, and time_total.
◆ sort_lines_by_decreasing_feedrate()
| void Slic3r::PerExtruderAdjustments::sort_lines_by_decreasing_feedrate |
( |
| ) |
|
|
inline |
208 {
209 std::sort(
lines.begin(),
lines.end(), [](
const CoolingLine &l1,
const CoolingLine &
l2) {
210 bool adj1 = l1.adjustable();
211 bool adj2 = l2.adjustable();
212 return (adj1 == adj2) ? l1.feedrate > l2.feedrate : adj1;
213 });
220 }
T l2(const boost::geometry::model::d2::point_xy< T > &v)
Definition ExtrusionSimulator.cpp:177
float time_non_adjustable
Definition CoolingBuffer.cpp:272
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 |
◆ dont_slow_down_outer_wall
| bool Slic3r::PerExtruderAdjustments::dont_slow_down_outer_wall = 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 |
◆ n_lines_adjustable
| size_t Slic3r::PerExtruderAdjustments::n_lines_adjustable = 0 |
◆ slow_down_layer_time
| float Slic3r::PerExtruderAdjustments::slow_down_layer_time = 0.f |
◆ slow_down_min_speed
| float Slic3r::PerExtruderAdjustments::slow_down_min_speed = 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: