mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -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
|
@ -2,6 +2,7 @@
|
|||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "ZTable.hpp"
|
||||
#include <vector>
|
||||
%}
|
||||
|
||||
|
|
25
xs/xsp/Point.xsp
Normal file
25
xs/xsp/Point.xsp
Normal file
|
@ -0,0 +1,25 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "Point.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::Point::XS} class Point {
|
||||
Point(unsigned long _x, unsigned long _y);
|
||||
~Point();
|
||||
SV* _toPerl();
|
||||
};
|
||||
|
||||
%package{Slic3r::Point::XS};
|
||||
|
||||
%{
|
||||
PROTOTYPES: DISABLE
|
||||
|
||||
std::string
|
||||
hello_world()
|
||||
CODE:
|
||||
RETVAL = "Hello world!";
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
%}
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "TriangleMesh.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
ZTable* O_OBJECT
|
||||
TriangleMesh* O_OBJECT
|
||||
Point* O_OBJECT
|
||||
std::vector< unsigned int >* T_STD_VECTOR_UINT_PTR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue