readd perl map; it actually works this time

This commit is contained in:
Michael Kirsch 2019-05-28 21:13:54 +02:00 committed by Joseph Lenox
parent b1a3b3cc9d
commit 2aeacd3f59
5 changed files with 24 additions and 0 deletions

View File

@ -260,6 +260,7 @@ xsp/SlicingAdaptive.xsp
xsp/SupportMaterial.xsp
xsp/Surface.xsp
xsp/SurfaceCollection.xsp
xsp/TransformationMatrix.xsp
xsp/TriangleMesh.xsp
xsp/typemap.xspt
xsp/XS.xsp

View File

@ -60,6 +60,7 @@ REGISTER_CLASS(SLAPrint, "SLAPrint");
REGISTER_CLASS(SlicingAdaptive, "SlicingAdaptive");
REGISTER_CLASS(Surface, "Surface");
REGISTER_CLASS(SurfaceCollection, "Surface::Collection");
REGISTER_CLASS(TransformationMatrix, "TransformationMatrix");
REGISTER_CLASS(TriangleMesh, "TriangleMesh");
REGISTER_CLASS(GLVertexArray, "GUI::_3DScene::GLVertexArray");

View File

@ -0,0 +1,14 @@
%module{Slic3r::XS};
%{
#include <xsinit.h>
#include "libslic3r/libslic3r.h"
#include "libslic3r/TransformationMatrix.hpp"
%}
%name{Slic3r::TransformationMatrix} class TransformationMatrix {
TransformationMatrix();
~TransformationMatrix();
Clone<TransformationMatrix> clone()
%code{% RETVAL=THIS; %};
};

View File

@ -53,6 +53,10 @@ Ref<FullPrintConfig> O_OBJECT_SLIC3R_T
ZTable* O_OBJECT
TransformationMatrix* O_OBJECT_SLIC3R
Ref<TransformationMatrix> O_OBJECT_SLIC3R_T
Clone<TransformationMatrix> O_OBJECT_SLIC3R_T
TriangleMesh* O_OBJECT_SLIC3R
Ref<TriangleMesh> O_OBJECT_SLIC3R_T
Clone<TriangleMesh> O_OBJECT_SLIC3R_T

View File

@ -85,6 +85,9 @@
%typemap{ExtrusionLoop*};
%typemap{Ref<ExtrusionLoop>}{simple};
%typemap{Clone<ExtrusionLoop>}{simple};
%typemap{TransformationMatrix*};
%typemap{Ref<TransformationMatrix>}{simple};
%typemap{Clone<TransformationMatrix>}{simple};
%typemap{TriangleMesh*};
%typemap{Ref<TriangleMesh>}{simple};
%typemap{Clone<TriangleMesh>}{simple};
@ -178,6 +181,7 @@
%typemap{ExtrusionPaths};
%typemap{Surfaces};
%typemap{Polygons*};
%typemap{TransformationMatrix*};
%typemap{TriangleMesh*};
%typemap{TriangleMeshPtrs};
%typemap{Extruder*};