mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
New Slic3r::Point::XS class
This commit is contained in:
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);
|
||||
}
|
||||
Reference in New Issue
Block a user