mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Ported Polygon->is_counter_clockwise() and rearranged code in .cpp files
This commit is contained in:
15
xs/src/Polyline.cpp
Normal file
15
xs/src/Polyline.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "Polyline.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
Lines
|
||||
Polyline::lines()
|
||||
{
|
||||
Lines lines;
|
||||
for (int i = 0; i < this->points.size()-1; i++) {
|
||||
lines.push_back(Line(this->points[i], this->points[i+1]));
|
||||
}
|
||||
return lines;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user