PrusaSlicer-NonPlainar/xs/xsp/TriangleMesh.xsp

30 lines
491 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>
2013-07-06 13:26:32 +00:00
#include "TriangleMesh.hpp"
2013-06-24 17:35:49 +00:00
%}
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
TriangleMesh();
~TriangleMesh();
void ReadSTLFile(char* input_file);
2013-07-03 09:38:01 +00:00
void ReadFromPerl(SV* vertices, SV* facets);
2013-06-24 17:35:49 +00:00
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
%}