mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 17:12:56 +00:00
Ported ExtrusionPath to XS. Failing test for Surface
This commit is contained in:
@@ -9,6 +9,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
#include "Point.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
@@ -19,6 +20,7 @@ class Polyline
|
||||
void scale(double factor);
|
||||
void translate(double x, double y);
|
||||
void rotate(double angle, Point* center);
|
||||
void reverse();
|
||||
};
|
||||
|
||||
typedef std::vector<Polyline> Polylines;
|
||||
@@ -49,6 +51,12 @@ Polyline::rotate(double angle, Point* center)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Polyline::reverse()
|
||||
{
|
||||
std::reverse(this->points.begin(), this->points.end());
|
||||
}
|
||||
|
||||
void
|
||||
perl2polyline(SV* poly_sv, Polyline& poly)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user