MotionPlanner.xsp 353 B

123456789101112131415
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include "libslic3r/MotionPlanner.hpp"
  5. %}
  6. %name{Slic3r::MotionPlanner} class MotionPlanner {
  7. MotionPlanner(ExPolygons islands);
  8. ~MotionPlanner();
  9. int islands_count();
  10. Clone<Polyline> shortest_path(Point* from, Point* to)
  11. %code%{ RETVAL = THIS->shortest_path(*from, *to); %};
  12. };