mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Slic3r::Polygon's boost_linestring method needs to close the contour.
This prevented Slic3r from detecting some bridge supporting edges (basically, if that edge was the last one in the contour). This addresses some of the bridge detection issues (#414, #358).
This commit is contained in:
		
							parent
							
								
									74f92aa686
								
							
						
					
					
						commit
						4296ea6da1
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,11 @@ sub lines {
 | 
			
		|||
    return @lines;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub boost_linestring {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return Boost::Geometry::Utils::linestring([@$self, $self->[0]]);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub is_counter_clockwise {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return Math::Clipper::is_counter_clockwise($self);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue