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

MotionPlanner.xsp « xsp « xs - github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57abef93767b37e69874f7530e6f7c8165eae15b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%module{Slic3r::XS};

%{
#include <myinit.h>
#include "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); %};
};