PrusaSlicer-NonPlainar/xs/xsp/TriangleMesh.xsp

28 lines
414 B
Plaintext
Raw Normal View History

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);
AV* ToPerl();
2013-06-24 17:35:49 +00:00
};
2013-06-22 15:16:45 +00:00
%package{Slic3r::TriangleMesh::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}