Gyroid infill - minor correction for standard-conforming compilers

This commit is contained in:
Lukas Matena 2018-02-22 12:00:24 +01:00
parent d59bb027eb
commit d17229efd5
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ Polyline FillGyroid::makeLineHori(double xPos, double yPos, double width, double
return polyline; return polyline;
} }
inline void FillGyroid::correctOrderAndAdd(const int num, Polyline &poly, Polylines &array){ inline void FillGyroid::correctOrderAndAdd(const int num, Polyline poly, Polylines &array){
if(num%2==0){ if(num%2==0){
Points temp(poly.points.rbegin(), poly.points.rend()); Points temp(poly.points.rbegin(), poly.points.rend());
poly.points.assign(temp.begin(),temp.end()); poly.points.assign(temp.begin(),temp.end());

View File

@ -36,7 +36,7 @@ protected:
// create the gyroid grid to clip. // create the gyroid grid to clip.
Polylines makeGrid(coord_t gridZ, double density, double layer_width, size_t gridWidth, size_t gridHeight, size_t curveType); Polylines makeGrid(coord_t gridZ, double density, double layer_width, size_t gridWidth, size_t gridHeight, size_t curveType);
//add line poly in reverse if needed into array //add line poly in reverse if needed into array
inline void correctOrderAndAdd(const int num, Polyline &poly, Polylines &array); inline void correctOrderAndAdd(const int num, Polyline poly, Polylines &array);
//create a curved horinzontal line (for each x, compute y) //create a curved horinzontal line (for each x, compute y)
Polyline makeLineHori(double xPos, double yPos, double width, double height, Polyline makeLineHori(double xPos, double yPos, double width, double height,
double currentYBegin, double segmentSize, coord_t scaleFactor, double currentYBegin, double segmentSize, coord_t scaleFactor,
@ -52,4 +52,4 @@ protected:
} // namespace Slic3r } // namespace Slic3r
#endif // slic3r_FillGyroid_hpp_ #endif // slic3r_FillGyroid_hpp_