PrusaSlicer-NonPlainar/xs/xsp/Geometry.xsp

61 lines
970 B
Plaintext
Raw Permalink Normal View History

2013-11-22 21:38:30 +00:00
%module{Slic3r::XS};
%{
#include <xsinit.h>
#include "libslic3r/Geometry.hpp"
#include "libslic3r/Geometry/ConvexHull.hpp"
#include "libslic3r/ShortestPath.hpp"
2013-11-22 21:38:30 +00:00
%}
2013-11-22 21:38:30 +00:00
%package{Slic3r::Geometry};
%{
Clone<Polygon>
2013-11-22 21:38:30 +00:00
convex_hull(points)
Points points
CODE:
RETVAL = Slic3r::Geometry::convex_hull(points);
2013-11-22 21:38:30 +00:00
OUTPUT:
RETVAL
2013-11-23 20:39:05 +00:00
std::vector<Points::size_type>
chained_path_from(points, start_from)
Points points
Point* start_from
CODE:
RETVAL = chain_points(points, start_from);
2013-11-23 20:39:05 +00:00
OUTPUT:
RETVAL
2014-11-15 21:41:22 +00:00
double
rad2deg(angle)
double angle
CODE:
RETVAL = Slic3r::Geometry::rad2deg(angle);
OUTPUT:
RETVAL
double
deg2rad(angle)
double angle
CODE:
RETVAL = Slic3r::Geometry::deg2rad(angle);
OUTPUT:
RETVAL
IV
_constant()
ALIAS:
X = X
Y = Y
Z = Z
PROTOTYPE:
CODE:
RETVAL = ix;
OUTPUT: RETVAL
2013-11-22 21:38:30 +00:00
%}