mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 14:34:04 -06:00
Add xsp wrapper for Pointf class.
This commit is contained in:
parent
e005ff32c4
commit
ad03a88733
3 changed files with 17 additions and 1 deletions
|
@ -28,6 +28,11 @@ our @ISA = 'Slic3r::Point';
|
|||
|
||||
sub DESTROY {}
|
||||
|
||||
package Slic3r::Pointf;
|
||||
use overload
|
||||
'@{}' => sub { [ $_[0]->x, $_[0]->y ] }, #,
|
||||
'fallback' => 1;
|
||||
|
||||
package Slic3r::Pointf3;
|
||||
use overload
|
||||
'@{}' => sub { [ $_[0]->x, $_[0]->y, $_[0]->z ] }, #,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue