mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Rewritten the medial axis algorithm, now more robust (don't just prune MAT from endpoints, but validate all single edges)
This commit is contained in:
parent
e4147a6bed
commit
7041bb5bd9
7 changed files with 231 additions and 209 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "Line.hpp"
|
||||
#include "Polygon.hpp"
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
|
@ -235,4 +236,12 @@ ThickPolyline::thicklines() const
|
|||
return lines;
|
||||
}
|
||||
|
||||
void
|
||||
ThickPolyline::reverse()
|
||||
{
|
||||
Polyline::reverse();
|
||||
std::reverse(this->width.begin(), this->width.end());
|
||||
std::swap(this->endpoints.first, this->endpoints.second);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue