Basic svg export ported from perl to the point where actual svg is assembled. Empty PNG files are genereted for each sliced layer.

This commit is contained in:
tamasmeszaros 2018-05-15 18:01:47 +02:00
parent 5fb81bacd5
commit d9ff63c022
6 changed files with 216 additions and 4 deletions

View file

@ -109,6 +109,16 @@ sub export_gcode {
}
}
sub export_png {
my $self = shift;
my %params = @_;
$_->slice for @{$self->objects};
my $fh = $params{output_file};
$self->print_to_png($fh);
}
# Export SVG slices for the offline SLA printing.
# The export_svg is expected to be executed inside an eval block.
sub export_svg {