mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 04:31:17 -07:00
Ported more Slic3r::GCode methods to XS
This commit is contained in:
parent
801f629fdc
commit
b4019bb438
9 changed files with 237 additions and 165 deletions
17
xs/t/21_gcode.t
Normal file
17
xs/t/21_gcode.t
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Slic3r::XS;
|
||||
use Test::More tests => 2;
|
||||
|
||||
{
|
||||
my $gcodegen = Slic3r::GCode->new;
|
||||
$gcodegen->set_origin(Slic3r::Pointf->new(10,0));
|
||||
is_deeply $gcodegen->origin->pp, [10,0], 'set_origin';
|
||||
$gcodegen->origin->translate(5,5);
|
||||
is_deeply $gcodegen->origin->pp, [15,5], 'origin returns reference to point';
|
||||
}
|
||||
|
||||
__END__
|
||||
Loading…
Add table
Add a link
Reference in a new issue