2014-11-15 21:41:22 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-07 23:39:54 +00:00
|
|
|
#include <xsinit.h>
|
2014-11-15 21:41:22 +00:00
|
|
|
#include "libslic3r/BridgeDetector.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::BridgeDetector} class BridgeDetector {
|
|
|
|
~BridgeDetector();
|
|
|
|
|
|
|
|
bool detect_angle();
|
2015-10-26 22:23:03 +00:00
|
|
|
Polygons coverage();
|
|
|
|
%name{coverage_by_angle} Polygons coverage(double angle);
|
|
|
|
Polylines unsupported_edges();
|
|
|
|
%name{unsupported_edges_by_angle} Polylines unsupported_edges(double angle);
|
2014-11-15 21:41:22 +00:00
|
|
|
double angle()
|
|
|
|
%code{% RETVAL = THIS->angle; %};
|
|
|
|
double resolution()
|
|
|
|
%code{% RETVAL = THIS->resolution; %};
|
|
|
|
%{
|
|
|
|
|
|
|
|
BridgeDetector*
|
|
|
|
BridgeDetector::new(expolygon, lower_slices, extrusion_width)
|
|
|
|
ExPolygon* expolygon;
|
|
|
|
ExPolygonCollection* lower_slices;
|
2018-02-12 17:16:10 +00:00
|
|
|
int extrusion_width;
|
2014-11-15 21:41:22 +00:00
|
|
|
CODE:
|
2019-10-04 14:50:01 +00:00
|
|
|
RETVAL = new BridgeDetector(*expolygon, lower_slices->expolygons, extrusion_width);
|
2014-11-15 21:41:22 +00:00
|
|
|
OUTPUT:
|
|
|
|
RETVAL
|
|
|
|
|
2016-11-08 08:59:25 +00:00
|
|
|
BridgeDetector*
|
|
|
|
BridgeDetector::new_expolygons(expolygons, lower_slices, extrusion_width)
|
|
|
|
ExPolygonCollection* expolygons;
|
|
|
|
ExPolygonCollection* lower_slices;
|
2018-02-12 17:16:10 +00:00
|
|
|
int extrusion_width;
|
2016-11-08 08:59:25 +00:00
|
|
|
CODE:
|
2019-10-04 14:50:01 +00:00
|
|
|
RETVAL = new BridgeDetector(expolygons->expolygons, lower_slices->expolygons, extrusion_width);
|
2016-11-08 08:59:25 +00:00
|
|
|
OUTPUT:
|
|
|
|
RETVAL
|
|
|
|
|
2014-11-15 21:41:22 +00:00
|
|
|
%}
|
|
|
|
};
|