PrusaSlicer-NonPlainar/xs/xsp/TriangleMesh.xsp
2013-06-24 19:35:49 +02:00

27 lines
396 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);
};
%package{Slic3r::TriangleMesh::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}