mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Have Clipper.pm only return ExPolygon::XS objects
This commit is contained in:
		
							parent
							
								
									9dc1a3c69d
								
							
						
					
					
						commit
						a1e4bda670
					
				
					 8 changed files with 22 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -115,7 +115,7 @@ sub clip_with_expolygon {
 | 
			
		|||
    my $self = shift;
 | 
			
		||||
    my ($expolygon) = @_;
 | 
			
		||||
    
 | 
			
		||||
    my $result = Boost::Geometry::Utils::polygon_multi_linestring_intersection($expolygon, [$self]);
 | 
			
		||||
    my $result = Boost::Geometry::Utils::polygon_multi_linestring_intersection($expolygon->arrayref, [$self]);
 | 
			
		||||
    bless $_, 'Slic3r::Polyline' for @$result;
 | 
			
		||||
    bless $_, 'Slic3r::Point' for map @$_, @$result;
 | 
			
		||||
    return @$result;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue