diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2022-04-28 18:02:33 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2022-05-02 15:34:50 +0300 |
commit | d88e9634f511714dc03072164b4f340efda0331d (patch) | |
tree | 3a208254b4762150e28341bf7a0dae1ccb36cae1 /xs | |
parent | 3687bc28d551f612c82c5a8dad9257d4f3a11f27 (diff) |
Little more reduce of Perl bindings
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/Clipper.xsp | 39 | ||||
-rw-r--r-- | xs/xsp/Polygon.xsp | 6 |
2 files changed, 0 insertions, 45 deletions
diff --git a/xs/xsp/Clipper.xsp b/xs/xsp/Clipper.xsp index 18f8dec07..5f9f35906 100644 --- a/xs/xsp/Clipper.xsp +++ b/xs/xsp/Clipper.xsp @@ -9,16 +9,6 @@ %{ -IV -_constant() - ALIAS: - JT_MITER = jtMiter - JT_ROUND = jtRound - JT_SQUARE = jtSquare - CODE: - RETVAL = ix; - OUTPUT: RETVAL - Polygons offset(polygons, delta, joinType = Slic3r::ClipperLib::jtMiter, miterLimit = 3) Polygons polygons @@ -62,35 +52,6 @@ diff_ex(subject, clip, safety_offset = false) OUTPUT: RETVAL -Polylines -diff_pl(subject, clip) - Polylines subject - Polygons clip - CODE: - RETVAL = diff_pl(subject, clip); - OUTPUT: - RETVAL - -Polygons -intersection(subject, clip, safety_offset = false) - Polygons subject - Polygons clip - bool safety_offset - CODE: - RETVAL = intersection(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No); - OUTPUT: - RETVAL - -ExPolygons -intersection_ex(subject, clip, safety_offset = false) - Polygons subject - Polygons clip - bool safety_offset - CODE: - RETVAL = intersection_ex(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No); - OUTPUT: - RETVAL - Polygons union(subject, safety_offset = false) Polygons subject diff --git a/xs/xsp/Polygon.xsp b/xs/xsp/Polygon.xsp index 6b6d52524..984eb16a9 100644 --- a/xs/xsp/Polygon.xsp +++ b/xs/xsp/Polygon.xsp @@ -41,12 +41,6 @@ Clone<BoundingBox> bounding_box(); Clone<Point> point_projection(Point* point) %code{% RETVAL = THIS->point_projection(*point); %}; - Clone<Point> intersection(Line* line) - %code{% - Point p; - (void)THIS->intersection(*line, &p); - RETVAL = p; - %}; Clone<Point> first_intersection(Line* line) %code{% Point p; |