mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	 695c92fb00
			
		
	
	
		695c92fb00
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
| package Slic3r::Geometry::Clipper;
 | |
| use strict;
 | |
| use warnings;
 | |
| 
 | |
| require Exporter;
 | |
| 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
 | |
|     union_pt_chained diff_ppl intersection_ppl);
 | |
| 
 | |
| 1;
 |