mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 16:42:43 +00:00
Ported Slic3r::BridgeDetector to XS
This commit is contained in:
37
xs/xsp/BridgeDetector.xsp
Normal file
37
xs/xsp/BridgeDetector.xsp
Normal file
@@ -0,0 +1,37 @@
|
||||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "libslic3r/BridgeDetector.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::BridgeDetector} class BridgeDetector {
|
||||
~BridgeDetector();
|
||||
|
||||
bool detect_angle();
|
||||
Polygons coverage()
|
||||
%code{% THIS->coverage(&RETVAL); %};
|
||||
Polygons coverage_by_angle(double angle)
|
||||
%code{% THIS->coverage(angle, &RETVAL); %};
|
||||
Polylines unsupported_edges()
|
||||
%code{% THIS->unsupported_edges(&RETVAL); %};
|
||||
Polylines unsupported_edges_by_angle(double angle)
|
||||
%code{% THIS->unsupported_edges(angle, &RETVAL); %};
|
||||
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;
|
||||
long extrusion_width;
|
||||
CODE:
|
||||
RETVAL = new BridgeDetector(*expolygon, *lower_slices, extrusion_width);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
%}
|
||||
};
|
||||
Reference in New Issue
Block a user