Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-11-24 00:39:05 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-11-24 00:39:05 +0400
commit0516aac71588d9558fff9ab9cfd125d41af6b412 (patch)
treeb4fb4a72f00d195a3f8c313f41f221a44093d200 /xs/xsp/Geometry.xsp
parent4d5d003ba73678d141358690cb1259bef5bdbaa1 (diff)
Ported chained_path() to XS
Diffstat (limited to 'xs/xsp/Geometry.xsp')
-rw-r--r--xs/xsp/Geometry.xsp17
1 files changed, 17 insertions, 0 deletions
diff --git a/xs/xsp/Geometry.xsp b/xs/xsp/Geometry.xsp
index 52750c8f2..09724e368 100644
--- a/xs/xsp/Geometry.xsp
+++ b/xs/xsp/Geometry.xsp
@@ -20,4 +20,21 @@ convex_hull(points)
OUTPUT:
RETVAL
+std::vector<Points::size_type>
+chained_path(points)
+ Points points
+ CODE:
+ chained_path(points, RETVAL);
+ OUTPUT:
+ RETVAL
+
+std::vector<Points::size_type>
+chained_path_from(points, start_from)
+ Points points
+ Point* start_from
+ CODE:
+ chained_path(points, RETVAL, *start_from);
+ OUTPUT:
+ RETVAL
+
%}