Fix build on win and rpi
This commit is contained in:
parent
399c5a9c98
commit
7158690ddd
4 changed files with 6 additions and 6 deletions
|
@ -128,7 +128,7 @@ static std::vector<SupportPointGenerator::MyLayer> make_layers(
|
|||
//const float pixel_area = pow(wxGetApp().preset_bundle->project_config.option<ConfigOptionFloat>("display_width") / wxGetApp().preset_bundle->project_config.option<ConfigOptionInt>("display_pixels_x"), 2.f); //
|
||||
const float pixel_area = pow(0.047f, 2.f);
|
||||
|
||||
ccr_par::for_each(0ul, layers.size(),
|
||||
ccr_par::for_each(size_t(0), layers.size(),
|
||||
[&layers, &slices, &heights, pixel_area, throw_on_cancel](size_t layer_id)
|
||||
{
|
||||
if ((layer_id % 8) == 0)
|
||||
|
@ -153,7 +153,7 @@ static std::vector<SupportPointGenerator::MyLayer> make_layers(
|
|||
}, 32 /*gransize*/);
|
||||
|
||||
// Calculate overlap of successive layers. Link overlapping islands.
|
||||
ccr_par::for_each(1ul, layers.size(),
|
||||
ccr_par::for_each(size_t(1), layers.size(),
|
||||
[&layers, &heights, throw_on_cancel] (size_t layer_id)
|
||||
{
|
||||
if ((layer_id % 2) == 0)
|
||||
|
|
|
@ -748,7 +748,7 @@ void SupportTreeBuildsteps::filter()
|
|||
}
|
||||
};
|
||||
|
||||
ccr::for_each(0ul, filtered_indices.size(),
|
||||
ccr::for_each(size_t(0), filtered_indices.size(),
|
||||
[this, &filterfn, &filtered_indices] (size_t i) {
|
||||
filterfn(filtered_indices[i], i, m_cfg.head_back_radius_mm);
|
||||
});
|
||||
|
|
|
@ -385,7 +385,7 @@ public:
|
|||
template<class Fn> void draw_layers(size_t layer_num, Fn &&drawfn)
|
||||
{
|
||||
m_layers.resize(layer_num);
|
||||
sla::ccr::for_each(0ul, m_layers.size(),
|
||||
sla::ccr::for_each(size_t(0), m_layers.size(),
|
||||
[this, &drawfn] (size_t idx) {
|
||||
sla::EncodedRaster& enc = m_layers[idx];
|
||||
auto rst = create_raster();
|
||||
|
|
|
@ -264,7 +264,7 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po)
|
|||
std::vector<ExPolygons> interior_slices;
|
||||
interior_slicer.slice(slice_grid, SlicingMode::Regular, closing_r, &interior_slices, thr);
|
||||
|
||||
sla::ccr::for_each(0ul, interior_slices.size(),
|
||||
sla::ccr::for_each(size_t(0), interior_slices.size(),
|
||||
[&po, &interior_slices] (size_t i) {
|
||||
const ExPolygons &slice = interior_slices[i];
|
||||
po.m_model_slices[i] =
|
||||
|
@ -792,7 +792,7 @@ void SLAPrint::Steps::merge_slices_and_eval_stats() {
|
|||
|
||||
// sequential version for debugging:
|
||||
// for(size_t i = 0; i < m_printer_input.size(); ++i) printlayerfn(i);
|
||||
sla::ccr::for_each(0ul, printer_input.size(), printlayerfn);
|
||||
sla::ccr::for_each(size_t(0), printer_input.size(), printlayerfn);
|
||||
|
||||
auto SCALING2 = SCALING_FACTOR * SCALING_FACTOR;
|
||||
print_statistics.support_used_material = supports_volume * SCALING2;
|
||||
|
|
Loading…
Reference in a new issue