mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-30 04:02:52 -06:00
Switch print_z to unscaled coordinates
This commit is contained in:
parent
3bcb2f04ed
commit
51de3ce14f
5 changed files with 11 additions and 12 deletions
|
|
@ -11,7 +11,7 @@ has 'regions' => (is => 'ro', default => sub { [] });
|
|||
has 'slicing_errors' => (is => 'rw');
|
||||
|
||||
has 'slice_z' => (is => 'ro', required => 1); # Z used for slicing in scaled coordinates
|
||||
has 'print_z' => (is => 'ro', required => 1); # Z used for printing in scaled coordinates
|
||||
has 'print_z' => (is => 'ro', required => 1); # Z used for printing in unscaled coordinates
|
||||
has 'height' => (is => 'ro', required => 1); # layer height in unscaled coordinates
|
||||
|
||||
# collection of expolygons generated by slicing the original geometry;
|
||||
|
|
@ -51,7 +51,7 @@ sub support_material_contact_height {
|
|||
# Z used for printing support material contact in scaled coordinates
|
||||
sub support_material_contact_z {
|
||||
my $self = shift;
|
||||
return $self->print_z - ($self->height - $self->support_material_contact_height) / &Slic3r::SCALING_FACTOR;
|
||||
return ($self->print_z - ($self->height - $self->support_material_contact_height)) / &Slic3r::SCALING_FACTOR;
|
||||
}
|
||||
|
||||
sub upper_layer_slices {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue