PrusaSlicer-NonPlainar/xs/xsp/MotionPlanner.xsp
2014-08-03 19:42:29 +02:00

15 lines
342 B
Plaintext

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