mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Use linestring_length() from Boost
This commit is contained in:
		
							parent
							
								
									0d6ff22e19
								
							
						
					
					
						commit
						bf809d1fd0
					
				
					 3 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -79,9 +79,7 @@ sub reverse {
 | 
			
		|||
 | 
			
		||||
sub length {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    my $length = 0;
 | 
			
		||||
    $length += $_->length for $self->lines;
 | 
			
		||||
    return $length;
 | 
			
		||||
    return Boost::Geometry::Utils::linestring_length($self);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub grow {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue