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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-01-19 20:53:04 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-01-19 20:53:04 +0300
commit8791f5a493d476c3e42a4d5c91f5a4b182fe2b18 (patch)
treec04dd0a73b8b30509791617539c7765d09307658 /xs/xsp/Polygon.xsp
parentc9cdae1a9659496f06066eb612e2baf55edfe4c4 (diff)
Cleanup of some method signatures and of XS return types
Diffstat (limited to 'xs/xsp/Polygon.xsp')
-rw-r--r--xs/xsp/Polygon.xsp25
1 files changed, 8 insertions, 17 deletions
diff --git a/xs/xsp/Polygon.xsp b/xs/xsp/Polygon.xsp
index 6a8eac99c..824a65310 100644
--- a/xs/xsp/Polygon.xsp
+++ b/xs/xsp/Polygon.xsp
@@ -19,14 +19,11 @@
void translate(double x, double y);
void reverse();
Lines lines();
- Polyline* split_at_vertex(Point* point)
- %code{% RETVAL = new Polyline(); THIS->split_at_vertex(*point, RETVAL); %};
- Polyline* split_at_index(int index)
- %code{% RETVAL = new Polyline(); THIS->split_at_index(index, RETVAL); %};
- Polyline* split_at_first_point()
- %code{% RETVAL = new Polyline(); THIS->split_at_first_point(RETVAL); %};
- Points equally_spaced_points(double distance)
- %code{% THIS->equally_spaced_points(distance, &RETVAL); %};
+ Clone<Polyline> split_at_vertex(Point* point)
+ %code{% RETVAL = THIS->split_at_vertex(*point); %};
+ Clone<Polyline> split_at_index(int index);
+ Clone<Polyline> split_at_first_point();
+ Points equally_spaced_points(double distance);
double length();
double area();
bool is_counter_clockwise();
@@ -41,16 +38,10 @@
Polygons triangulate_convex()
%code{% THIS->triangulate_convex(&RETVAL); %};
Clone<Point> centroid();
- BoundingBox* bounding_box()
- %code{%
- RETVAL = new BoundingBox();
- THIS->bounding_box(RETVAL);
- %};
+ Clone<BoundingBox> bounding_box();
std::string wkt();
- Points concave_points(double angle)
- %code{% THIS->concave_points(angle, &RETVAL); %};
- Points convex_points(double angle)
- %code{% THIS->convex_points(angle, &RETVAL); %};
+ Points concave_points(double angle);
+ Points convex_points(double angle);
%{
Polygon*