mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 05:54:03 -06:00
Ported Slic3r::GCode storage to XS
This commit is contained in:
parent
ab858f320d
commit
801f629fdc
13 changed files with 199 additions and 64 deletions
|
@ -13,10 +13,8 @@ use Slic3r::Geometry qw(scale convex_hull);
|
|||
use Slic3r::Test;
|
||||
|
||||
{
|
||||
my $gcodegen = Slic3r::GCode->new(
|
||||
layer_count => 1,
|
||||
extruders => [],
|
||||
);
|
||||
my $gcodegen = Slic3r::GCode->new();
|
||||
$gcodegen->set_layer_count(1);
|
||||
$gcodegen->set_origin(Slic3r::Pointf->new(10, 10));
|
||||
is_deeply $gcodegen->last_pos->arrayref, [scale -10, scale -10], 'last_pos is shifted correctly';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue