mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	CLIPPER_OFFSET_SCALE was made a power of two, the scaling functions
inside ClipperUtils are now using bit shifts instead of multiplication by doubles, which makes the scaling precise. Removed the scale parameter from all offset functions. Modified the safety offset to calculate offset per polygon instead of over all polygons at once. The old way was not safe and very slow, sometimes this meant a kiss of death for supports for example.
This commit is contained in:
		
							parent
							
								
									e93253e270
								
							
						
					
					
						commit
						695c92fb00
					
				
					 14 changed files with 214 additions and 152 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@ our @ISA = qw(Exporter);
 | 
			
		|||
our @EXPORT_OK = qw(offset offset_ex
 | 
			
		||||
    diff_ex diff union_ex intersection_ex xor_ex JT_ROUND JT_MITER
 | 
			
		||||
    JT_SQUARE is_counter_clockwise union_pt offset2 offset2_ex
 | 
			
		||||
    intersection intersection_pl diff_pl union CLIPPER_OFFSET_SCALE
 | 
			
		||||
    intersection intersection_pl diff_pl union
 | 
			
		||||
    union_pt_chained diff_ppl intersection_ppl);
 | 
			
		||||
 | 
			
		||||
1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue