Very minor code improvements

This commit is contained in:
Alessandro Ranellucci 2015-12-19 16:36:07 +01:00
parent 2df750a9c9
commit bab3404b2d
2 changed files with 7 additions and 7 deletions

View file

@ -322,7 +322,7 @@ GCode::extrude(ExtrusionLoop loop, std::string description, double speed)
if (this->config.spiral_vase) {
loop.split_at(last_pos);
} else if (this->config.seam_position == spNearest || this->config.seam_position == spAligned) {
Polygon polygon = loop.polygon();
const Polygon polygon = loop.polygon();
// simplify polygon in order to skip false positives in concave/convex detection
// (loop is always ccw as polygon.simplify() only works on ccw polygons)