f788f50b5a
Added a safe variant of offset(const Slic3r::ExPolygon...), which offsets each loop separately. New functions "remove_sticks" to remove zero area parts of polygons. New functions "remove_small" and "remove_degenerate" for polygon clean up. Extended the C++ supports, those are not finalized yet though.
27 lines
505 B
Plaintext
27 lines
505 B
Plaintext
%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
|
|
|
|
%}
|