2013-06-23 13:33:07 +00:00
|
|
|
%module{Slic3r::XS};
|
2013-06-24 17:35:49 +00:00
|
|
|
|
|
|
|
%{
|
|
|
|
#include <myinit.h>
|
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
|
|
|
|
TriangleMesh();
|
|
|
|
~TriangleMesh();
|
|
|
|
void ReadSTLFile(char* input_file);
|
|
|
|
void Repair();
|
|
|
|
void WriteOBJFile(char* output_file);
|
|
|
|
};
|
|
|
|
|
2013-06-22 15:16:45 +00:00
|
|
|
%package{Slic3r::TriangleMesh::XS};
|
|
|
|
|
|
|
|
%{
|
|
|
|
PROTOTYPES: DISABLE
|
|
|
|
|
|
|
|
std::string
|
|
|
|
hello_world()
|
|
|
|
CODE:
|
|
|
|
RETVAL = "Hello world!";
|
|
|
|
OUTPUT:
|
|
|
|
RETVAL
|
|
|
|
%}
|