mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
		
							parent
							
								
									30bcadab3e
								
							
						
					
					
						commit
						1555904bef
					
				
					 3771 changed files with 1251328 additions and 0 deletions
				
			
		
							
								
								
									
										39
									
								
								lib/Slic3r/ExPolygon.pm
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								lib/Slic3r/ExPolygon.pm
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,39 @@ | |||
| package Slic3r::ExPolygon; | ||||
| use strict; | ||||
| use warnings; | ||||
| 
 | ||||
| # an ExPolygon is a polygon with holes | ||||
| 
 | ||||
| use List::Util qw(first); | ||||
| use Slic3r::Geometry::Clipper qw(union_ex diff_pl); | ||||
| 
 | ||||
| sub offset { | ||||
|     my $self = shift; | ||||
|     return Slic3r::Geometry::Clipper::offset(\@$self, @_); | ||||
| } | ||||
| 
 | ||||
| sub offset_ex { | ||||
|     my $self = shift; | ||||
|     return Slic3r::Geometry::Clipper::offset_ex(\@$self, @_); | ||||
| } | ||||
| 
 | ||||
| sub noncollapsing_offset_ex { | ||||
|     my $self = shift; | ||||
|     my ($distance, @params) = @_; | ||||
|      | ||||
|     return $self->offset_ex($distance + 1, @params); | ||||
| } | ||||
| 
 | ||||
| sub bounding_box { | ||||
|     my $self = shift; | ||||
|     return $self->contour->bounding_box; | ||||
| } | ||||
| 
 | ||||
| package Slic3r::ExPolygon::Collection; | ||||
| 
 | ||||
| sub size { | ||||
|     my $self = shift; | ||||
|     return [ Slic3r::Geometry::size_2D([ map @$_, map @$_, @$self ]) ]; | ||||
| } | ||||
| 
 | ||||
| 1; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lane.wei
						lane.wei