mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Gyroid infill - minor correction for standard-conforming compilers
This commit is contained in:
		
							parent
							
								
									d59bb027eb
								
							
						
					
					
						commit
						d17229efd5
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -57,7 +57,7 @@ Polyline FillGyroid::makeLineHori(double xPos, double yPos, double width, double | |||
|     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){ | ||||
|         Points temp(poly.points.rbegin(), poly.points.rend()); | ||||
|         poly.points.assign(temp.begin(),temp.end()); | ||||
|  |  | |||
|  | @ -36,7 +36,7 @@ protected: | |||
|     // 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); | ||||
|     //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)
 | ||||
|     Polyline makeLineHori(double xPos, double yPos, double width, double height,  | ||||
|         double currentYBegin, double segmentSize, coord_t scaleFactor,  | ||||
|  | @ -52,4 +52,4 @@ protected: | |||
| 
 | ||||
| } // namespace Slic3r
 | ||||
| 
 | ||||
| #endif // slic3r_FillGyroid_hpp_
 | ||||
| #endif // slic3r_FillGyroid_hpp_
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena