mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Very basic implementation of 3D preview - install Wx::GLCanvas to get it working
This commit is contained in:
		
							parent
							
								
									228c84ddc1
								
							
						
					
					
						commit
						5c74fd095b
					
				
					 7 changed files with 221 additions and 149 deletions
				
			
		|  | @ -365,6 +365,19 @@ sub align_to_origin { | |||
|     $self->move(map -$extents[$_][MIN], X,Y,Z); | ||||
| } | ||||
| 
 | ||||
| sub center_around_origin { | ||||
|     my $self = shift; | ||||
|      | ||||
|     $self->move(map -$_, @{ $self->center }); | ||||
| } | ||||
| 
 | ||||
| sub center { | ||||
|     my $self = shift; | ||||
|      | ||||
|     my @extents = $self->extents; | ||||
|     return [ map +($extents[$_][MAX] + $extents[$_][MIN])/2, X,Y,Z ]; | ||||
| } | ||||
| 
 | ||||
| sub duplicate { | ||||
|     my $self = shift; | ||||
|     my (@shifts) = @_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci