Skip to content

Commit

Permalink
Two minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Dec 12, 2016
1 parent 540d632 commit 3a3b24e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xs/src/libslic3r/LayerRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ LayerRegion::process_external_surfaces(const Layer* lower_layer)
BridgeDetector bd(
surface->expolygon,
lower_layer->slices,
this->flow(frInfill, this->layer()->height, true).scaled_width()
this->flow(frInfill, true).scaled_width()
);

#ifdef SLIC3R_DEBUG
Expand Down
3 changes: 2 additions & 1 deletion xs/src/libslic3r/SLAPrint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "Geometry.hpp"
#include "Surface.hpp"
#include <iostream>
#include <complex>
#include <cstdio>

namespace Slic3r {
Expand Down Expand Up @@ -161,7 +162,7 @@ SLAPrint::_infill_layer(size_t i, const Fill* _fill)
Polygons internal = layer.slices;
for (size_t j = 0; j < this->layers.size(); ++j) {
const Layer &other = this->layers[j];
if (abs(other.print_z - layer.print_z) > shell_thickness) continue;
if (std::abs(other.print_z - layer.print_z) > shell_thickness) continue;

if (j == 0 || j == this->layers.size()-1) {
internal.clear();
Expand Down

0 comments on commit 3a3b24e

Please sign in to comment.