mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Customizable overlap ratio (it defaults to 0.15 now)
This commit is contained in:
		
							parent
							
								
									9f6be233f8
								
							
						
					
					
						commit
						d9a70ea80d
					
				
					 15 changed files with 67 additions and 42 deletions
				
			
		|  | @ -4,6 +4,7 @@ use Moo; | |||
| extends 'Slic3r::Polyline'; | ||||
| 
 | ||||
| use Math::Clipper qw(JT_MITER); | ||||
| use Slic3r::Geometry qw(scale); | ||||
| 
 | ||||
| sub lines { | ||||
|     my $self = shift; | ||||
|  | @ -31,7 +32,7 @@ sub is_printable { | |||
|     # if no offset is possible, then polyline is not printable | ||||
|     my $p = $self->p; | ||||
|     @$p = reverse @$p if !Math::Clipper::is_counter_clockwise($p); | ||||
|     my $offsets = Math::Clipper::offset([$p], -($Slic3r::flow_width / 2 / $Slic3r::resolution), $Slic3r::resolution * 100000, JT_MITER, 2); | ||||
|     my $offsets = Math::Clipper::offset([$p], -(scale $Slic3r::flow_spacing / 2), $Slic3r::resolution * 100000, JT_MITER, 2); | ||||
|     return @$offsets ? 1 : 0; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci