49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
%module{Slic3r::XS};
|
|
|
|
%{
|
|
#include <myinit.h>
|
|
#include "clipper.hpp"
|
|
#include "ClipperUtils.hpp"
|
|
%}
|
|
|
|
%package{Slic3r::Geometry::Clipper};
|
|
|
|
%{
|
|
|
|
ExPolygons
|
|
offset_ex(polygons, delta, scale = 100000, joinType = ClipperLib::jtMiter, miterLimit = 3)
|
|
Polygons polygons
|
|
const float delta
|
|
double scale
|
|
ClipperLib::JoinType joinType
|
|
double miterLimit
|
|
CODE:
|
|
offset_ex(polygons, RETVAL, delta, scale, joinType, miterLimit);
|
|
OUTPUT:
|
|
RETVAL
|
|
|
|
ExPolygons
|
|
offset2_ex(polygons, delta1, delta2, scale = 100000, joinType = ClipperLib::jtMiter, miterLimit = 3)
|
|
Polygons polygons
|
|
const float delta1
|
|
const float delta2
|
|
double scale
|
|
ClipperLib::JoinType joinType
|
|
double miterLimit
|
|
CODE:
|
|
offset2_ex(polygons, RETVAL, delta1, delta2, scale, joinType, miterLimit);
|
|
OUTPUT:
|
|
RETVAL
|
|
|
|
ExPolygons
|
|
diff_ex(subject, clip, safety_offset = false)
|
|
Polygons subject
|
|
Polygons clip
|
|
bool safety_offset
|
|
CODE:
|
|
diff_ex(subject, clip, RETVAL, safety_offset);
|
|
OUTPUT:
|
|
RETVAL
|
|
|
|
%}
|