Files
OrcaSlicer-bambulab/xs/xsp/TriangleMesh.xsp
T

30 lines
491 B
Plaintext
Raw Normal View History

2013-06-23 15:33:07 +02:00
%module{Slic3r::XS};
2013-06-24 19:35:49 +02:00
%{
#include <myinit.h>
2013-07-06 15:26:32 +02:00
#include "TriangleMesh.hpp"
2013-06-24 19:35:49 +02:00
%}
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
TriangleMesh();
~TriangleMesh();
void ReadSTLFile(char* input_file);
2013-07-03 11:38:01 +02:00
void ReadFromPerl(SV* vertices, SV* facets);
2013-06-24 19:35:49 +02:00
void Repair();
void WriteOBJFile(char* output_file);
AV* ToPerl();
2013-06-24 19:35:49 +02:00
};
2013-06-22 17:16:45 +02:00
%package{Slic3r::TriangleMesh::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}