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

BridgeDetector.xsp « xsp « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0039d357984ab6b57d6e6783a9d446c7a00eba48 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%module{Slic3r::XS};

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

%name{Slic3r::BridgeDetector} class BridgeDetector {
    ~BridgeDetector();
    
    bool detect_angle();
    Polygons coverage();
    %name{coverage_by_angle} Polygons coverage(double angle);
    Polylines unsupported_edges();
    %name{unsupported_edges_by_angle} Polylines unsupported_edges(double angle);
    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;
    int                     extrusion_width;
    CODE:
        RETVAL = new BridgeDetector(*expolygon, *lower_slices, extrusion_width);
    OUTPUT:
        RETVAL

BridgeDetector*
BridgeDetector::new_expolygons(expolygons, lower_slices, extrusion_width)
    ExPolygonCollection*    expolygons;
    ExPolygonCollection*    lower_slices;
    int                     extrusion_width;
    CODE:
        RETVAL = new BridgeDetector(expolygons->expolygons, *lower_slices, extrusion_width);
    OUTPUT:
        RETVAL

%}
};