PrusaSlicer-NonPlainar/xs/xsp/TriangleMesh.xsp
2013-06-24 20:11:56 +02:00

28 lines
414 B
Plaintext

%module{Slic3r::XS};
%{
#include <myinit.h>
%}
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
TriangleMesh();
~TriangleMesh();
void ReadSTLFile(char* input_file);
void Repair();
void WriteOBJFile(char* output_file);
AV* ToPerl();
};
%package{Slic3r::TriangleMesh::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}