7d7f093120
the old Perl supports, but this time with the C++ fillers.
33 lines
651 B
Plaintext
33 lines
651 B
Plaintext
%module{Slic3r::XS};
|
|
|
|
%{
|
|
#include <xsinit.h>
|
|
#include "libslic3r/SupportMaterial.hpp"
|
|
%}
|
|
|
|
%name{Slic3r::Print::SupportMaterial2} class PrintSupportMaterial {
|
|
%name{_new} PrintSupportMaterial(
|
|
PrintConfig *print_config,
|
|
PrintObjectConfig *object_config,
|
|
Flow *flow,
|
|
Flow *first_layer_flow,
|
|
Flow *interface_flow,
|
|
bool soluble_interface);
|
|
~PrintSupportMaterial();
|
|
|
|
void generate(PrintObject *object)
|
|
%code{% THIS->generate(*object); %};
|
|
};
|
|
|
|
%package{Slic3r::Print::SupportMaterial};
|
|
%{
|
|
|
|
SV*
|
|
MARGIN()
|
|
PROTOTYPE:
|
|
CODE:
|
|
RETVAL = newSVnv(SUPPORT_MATERIAL_MARGIN);
|
|
OUTPUT: RETVAL
|
|
|
|
%}
|