PrusaSlicer-NonPlainar/xs/xsp/MotionPlanner.xsp
2015-01-19 18:53:04 +01:00

16 lines
353 B
Plaintext

%module{Slic3r::XS};
%{
#include <myinit.h>
#include "libslic3r/MotionPlanner.hpp"
%}
%name{Slic3r::MotionPlanner} class MotionPlanner {
MotionPlanner(ExPolygons islands);
~MotionPlanner();
int islands_count();
Clone<Polyline> shortest_path(Point* from, Point* to)
%code%{ RETVAL = THIS->shortest_path(*from, *to); %};
};