Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SupportMaterial.xsp « xsp « xs - github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01a53efa7aa81ff11006a06ad9fb8515ffb65d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%module{Slic3r::XS};

%{
#include <xsinit.h>
#include "libslic3r/SupportMaterial.hpp"
%}

%name{Slic3r::Print::SupportMaterial2} class PrintObjectSupportMaterial {
    PrintObjectSupportMaterial(PrintObject *print_object);
    ~PrintObjectSupportMaterial();

    void generate(PrintObject *object)
        %code{% THIS->generate(*object); %};
};

%package{Slic3r::Print::SupportMaterial};
%{

SV*
MARGIN()
    PROTOTYPE:
    CODE:
        RETVAL = newSVnv(SUPPORT_MATERIAL_MARGIN);
    OUTPUT: RETVAL

%}