mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Check if exist any boundary polyline
This commit is contained in:
		
							parent
							
								
									5633526ecf
								
							
						
					
					
						commit
						5e9399247c
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		|  | @ -51,13 +51,19 @@ void FillAdaptive::_fill_surface_single( | |||
|             if(polyline.lines().size() == 1 && expolygon.has_boundary_point(polyline.lines().front().a) && expolygon.has_boundary_point(polyline.lines().front().b)) | ||||
|             { | ||||
|                 boundary_polylines.push_back(polyline); | ||||
|             } else { | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 non_boundary_polylines.push_back(polyline); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         boundary_polylines = chain_polylines(boundary_polylines); | ||||
|         FillAdaptive::connect_infill(std::move(boundary_polylines), expolygon, polylines_out, this->spacing, params); | ||||
|         if(!boundary_polylines.empty()) | ||||
|         { | ||||
|             boundary_polylines = chain_polylines(boundary_polylines); | ||||
|             FillAdaptive::connect_infill(std::move(boundary_polylines), expolygon, polylines_out, this->spacing, params); | ||||
|         } | ||||
| 
 | ||||
|         polylines_out.insert(polylines_out.end(), non_boundary_polylines.begin(), non_boundary_polylines.end()); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukáš Hejl
						Lukáš Hejl