mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 12:41:18 -07:00 
			
		
		
		
	Removed dependency on Perl Math::PlanePath module. Fixed compilation with Visual Studio and SLIC3R_DEBUG: Visual Studio older than 2015 does not support the prinf type specifier %zu. Use %Iu instead. C++11 move semantics enabled.
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			711 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			711 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
# Extends the C++ class Slic3r::Layer.
 | 
						|
 | 
						|
package Slic3r::Layer;
 | 
						|
use strict;
 | 
						|
use warnings;
 | 
						|
 | 
						|
# the following two were previously generated by Moo
 | 
						|
sub print {
 | 
						|
    my $self = shift;
 | 
						|
    return $self->object->print;
 | 
						|
}
 | 
						|
 | 
						|
sub config {
 | 
						|
    my $self = shift;
 | 
						|
    return $self->object->config;
 | 
						|
}
 | 
						|
 | 
						|
sub region {
 | 
						|
    my $self = shift;
 | 
						|
    my ($region_id) = @_;
 | 
						|
    
 | 
						|
    while ($self->region_count <= $region_id) {
 | 
						|
        $self->add_region($self->object->print->get_region($self->region_count));
 | 
						|
    }
 | 
						|
    
 | 
						|
    return $self->get_region($region_id);
 | 
						|
}
 | 
						|
 | 
						|
sub regions {
 | 
						|
    my ($self) = @_;
 | 
						|
    return [ map $self->get_region($_), 0..($self->region_count-1) ];
 | 
						|
}
 | 
						|
 | 
						|
package Slic3r::Layer::Support;
 | 
						|
our @ISA = qw(Slic3r::Layer);
 | 
						|
 | 
						|
1;
 |