mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-09 14:55:08 -06:00
New Slic3r::Point::XS class
This commit is contained in:
parent
cca25c9950
commit
c50ecfb7f8
11 changed files with 109 additions and 17 deletions
14
xs/src/Point.cpp
Normal file
14
xs/src/Point.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "myinit.h"
|
||||
#include "Point.hpp"
|
||||
|
||||
Point::Point(unsigned long x, unsigned long y) {}
|
||||
Point::~Point() {}
|
||||
|
||||
|
||||
SV*
|
||||
Point::_toPerl() {
|
||||
AV* av = newAV();
|
||||
av_fill(av, 1);
|
||||
av_store_point_xy(av, x, y);
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue