mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
More files for convex_hull
This commit is contained in:
parent
4577f0725c
commit
5309e3ef22
4 changed files with 103 additions and 0 deletions
23
xs/xsp/Geometry.xsp
Normal file
23
xs/xsp/Geometry.xsp
Normal file
|
@ -0,0 +1,23 @@
|
|||
%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
|
||||
|
||||
%}
|
Loading…
Add table
Add a link
Reference in a new issue