mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Ported Flow to XS
This commit is contained in:
		
							parent
							
								
									87342d324c
								
							
						
					
					
						commit
						036badf932
					
				
					 16 changed files with 360 additions and 201 deletions
				
			
		|  | @ -146,6 +146,34 @@ our @ISA = 'Slic3r::ExtrusionPath'; | |||
| 
 | ||||
| sub DESTROY {} | ||||
| 
 | ||||
| package Slic3r::Flow; | ||||
| 
 | ||||
| sub new { | ||||
|     my ($class, %args) = @_; | ||||
|      | ||||
|     my $self = $class->_new( | ||||
|         @args{qw(width spacing nozzle_diameter)}, | ||||
|     ); | ||||
|     $self->set_bridge($args{bridge} // 0); | ||||
|     return $self; | ||||
| } | ||||
| 
 | ||||
| sub new_from_width { | ||||
|     my ($class, %args) = @_; | ||||
|      | ||||
|     return $class->_new_from_width( | ||||
|         @args{qw(role width nozzle_diameter layer_height bridge_flow_ratio)}, | ||||
|     ); | ||||
| } | ||||
| 
 | ||||
| sub new_from_spacing { | ||||
|     my ($class, %args) = @_; | ||||
|      | ||||
|     return $class->_new_from_spacing( | ||||
|         @args{qw(spacing nozzle_diameter layer_height bridge)}, | ||||
|     ); | ||||
| } | ||||
| 
 | ||||
| package Slic3r::Surface; | ||||
| 
 | ||||
| sub new { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci