mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Pass previously set arc tolerance to concave hull
This commit is contained in:
		
							parent
							
								
									3f1fc8329b
								
							
						
					
					
						commit
						dc588e2db5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -133,7 +133,8 @@ ExPolygons offset_waffle_style_ex(const ConcaveHull &hull, coord_t delta) | |||
| 
 | ||||
| Polygons offset_waffle_style(const ConcaveHull &hull, coord_t delta) | ||||
| { | ||||
|     Polygons res = closing(hull.polygons(), 2 * delta, delta, ClipperLib::jtRound); | ||||
|     auto arc_tolerance = scaled<double>(0.01); | ||||
|     Polygons res = closing(hull.polygons(), 2 * delta, delta, ClipperLib::jtRound, arc_tolerance); | ||||
| 
 | ||||
|     auto it = std::remove_if(res.begin(), res.end(), [](Polygon &p) { return p.is_clockwise(); }); | ||||
|     res.erase(it, res.end()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros