PrusaSlicer-NonPlainar/xs/xsp/Geometry.xsp
Petr Ledvina 028ef3a868 Add missing perlglue.hpp to xsp files
perlglue was missing in some xsp files. If file ordering ib XS.c is changed, header file could be missing. Maybe solves #2000
2014-05-02 14:08:44 +02:00

41 lines
707 B
Plaintext

%module{Slic3r::XS};
%{
#include <myinit.h>
#include "Geometry.hpp"
#include "perlglue.hpp"
%}
%package{Slic3r::Geometry};
%{
Polygon*
convex_hull(points)
Points points
CODE:
RETVAL = new Polygon ();
Slic3r::Geometry::convex_hull(points, RETVAL);
OUTPUT:
RETVAL
std::vector<Points::size_type>
chained_path(points)
Points points
CODE:
Slic3r::Geometry::chained_path(points, RETVAL);
OUTPUT:
RETVAL
std::vector<Points::size_type>
chained_path_from(points, start_from)
Points points
Point* start_from
CODE:
Slic3r::Geometry::chained_path(points, RETVAL, *start_from);
OUTPUT:
RETVAL
%}