mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
		
							parent
							
								
									30bcadab3e
								
							
						
					
					
						commit
						1555904bef
					
				
					 3771 changed files with 1251328 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								lib/Slic3r/Print/Object.pm
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								lib/Slic3r/Print/Object.pm
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
package Slic3r::Print::Object;
 | 
			
		||||
# extends c++ class Slic3r::PrintObject (Print.xsp)
 | 
			
		||||
use strict;
 | 
			
		||||
use warnings;
 | 
			
		||||
 | 
			
		||||
use List::Util qw(min max sum first);
 | 
			
		||||
use Slic3r::Flow ':roles';
 | 
			
		||||
use Slic3r::Geometry qw(scale epsilon);
 | 
			
		||||
use Slic3r::Geometry::Clipper qw(diff diff_ex intersection intersection_ex union union_ex 
 | 
			
		||||
    offset offset_ex offset2_ex JT_MITER);
 | 
			
		||||
use Slic3r::Print::State ':steps';
 | 
			
		||||
use Slic3r::Surface ':types';
 | 
			
		||||
 | 
			
		||||
sub layers {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return [ map $self->get_layer($_), 0..($self->layer_count - 1) ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub support_layers {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return [ map $self->get_support_layer($_), 0..($self->support_layer_count - 1) ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
1;
 | 
			
		||||
							
								
								
									
										12
									
								
								lib/Slic3r/Print/State.pm
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								lib/Slic3r/Print/State.pm
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
# Wraps C++ enums Slic3r::PrintStep and Slic3r::PrintObjectStep
 | 
			
		||||
package Slic3r::Print::State;
 | 
			
		||||
use strict;
 | 
			
		||||
use warnings;
 | 
			
		||||
 | 
			
		||||
require Exporter;
 | 
			
		||||
our @ISA = qw(Exporter);
 | 
			
		||||
our @EXPORT_OK   = qw(STEP_SLICE STEP_PERIMETERS STEP_PREPARE_INFILL 
 | 
			
		||||
                    STEP_INFILL STEP_SUPPORTMATERIAL STEP_SKIRT STEP_BRIM STEP_WIPE_TOWER);
 | 
			
		||||
our %EXPORT_TAGS = (steps => \@EXPORT_OK);
 | 
			
		||||
 | 
			
		||||
1;
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue