mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Multiple objects autoplating (--merge, from command line only)
This commit is contained in:
parent
222e9df7f9
commit
ed4a5739f6
10 changed files with 692 additions and 651 deletions
|
@ -338,7 +338,7 @@ sub size {
|
|||
|
||||
sub slice_facet {
|
||||
my $self = shift;
|
||||
my ($print, $facet_id) = @_;
|
||||
my ($print_object, $facet_id) = @_;
|
||||
my ($normal, @vertices) = @{$self->facets->[$facet_id]};
|
||||
Slic3r::debugf "\n==> FACET %d (%f,%f,%f - %f,%f,%f - %f,%f,%f):\n",
|
||||
$facet_id, map @{$self->vertices->[$_]}, @vertices
|
||||
|
@ -367,7 +367,7 @@ sub slice_facet {
|
|||
|
||||
my $lines = {}; # layer_id => [ lines ]
|
||||
for (my $layer_id = $min_layer; $layer_id <= $max_layer; $layer_id++) {
|
||||
my $layer = $print->layer($layer_id);
|
||||
my $layer = $print_object->layer($layer_id);
|
||||
$lines->{$layer_id} ||= [];
|
||||
push @{ $lines->{$layer_id} }, $self->intersect_facet($facet_id, $layer->slice_z);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue