mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Refactoring: moved the ooze prevention logic into a separate class with hooks
This commit is contained in:
		
							parent
							
								
									e521475b7e
								
							
						
					
					
						commit
						f8967418b9
					
				
					 4 changed files with 61 additions and 27 deletions
				
			
		|  | @ -842,7 +842,11 @@ sub write_gcode { | |||
|                 $s->translate(map scale($_), @{$self->config->get_at('extruder_offset', $extruder_id)}); | ||||
|             } | ||||
|             my $convex_hull = convex_hull([ map @$_, @skirts ]); | ||||
|             $gcodegen->standby_points([ map $_->clone, map @$_, map $_->subdivide(scale 10), @{offset([$convex_hull], scale 3)} ]); | ||||
|              | ||||
|             my $oozeprev = Slic3r::GCode::OozePrevention->new( | ||||
|                 standby_points => [ map $_->clone, map @$_, map $_->subdivide(scale 10), @{offset([$convex_hull], scale 3)} ], | ||||
|             ); | ||||
|             $gcodegen->ooze_prevention($oozeprev); | ||||
|         } | ||||
|     } | ||||
|      | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci