24 lines
330 B
Plaintext
24 lines
330 B
Plaintext
%module{Slic3r::XS};
|
|
|
|
%{
|
|
#include <myinit.h>
|
|
#include "Geometry.hpp"
|
|
%}
|
|
|
|
%package{Slic3r::Geometry};
|
|
|
|
%{
|
|
|
|
Polygon*
|
|
convex_hull(points)
|
|
Points points
|
|
PREINIT:
|
|
const char* CLASS = "Slic3r::Polygon";
|
|
CODE:
|
|
RETVAL = new Polygon ();
|
|
convex_hull(points, *RETVAL);
|
|
OUTPUT:
|
|
RETVAL
|
|
|
|
%}
|