mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Print first layer at Z = 1 * layer_height instead of zero like it was until now. #17
This commit is contained in:
		
							parent
							
								
									b4e268efad
								
							
						
					
					
						commit
						0b42139e54
					
				
					 3 changed files with 10 additions and 3 deletions
				
			
		|  | @ -76,11 +76,18 @@ has 'fills' => ( | |||
|     default => sub { [] }, | ||||
| ); | ||||
| 
 | ||||
| sub z { | ||||
| # Z used for slicing | ||||
| sub slice_z { | ||||
|     my $self = shift; | ||||
|     return ($self->id * $Slic3r::layer_height + $Slic3r::layer_height/2) / $Slic3r::resolution; | ||||
| } | ||||
| 
 | ||||
| # Z used for printing | ||||
| sub print_z { | ||||
|     my $self = shift; | ||||
|     return ($self->id + 1) * $Slic3r::layer_height / $Slic3r::resolution; | ||||
| } | ||||
| 
 | ||||
| sub add_surface { | ||||
|     my $self = shift; | ||||
|     my (@vertices) = @_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci