mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
More refactoring to medial axis and gap fill, more robust
This commit is contained in:
parent
b068616366
commit
9e8022f6f6
13 changed files with 133 additions and 58 deletions
|
@ -128,6 +128,19 @@ MultiPoint::intersection(const Line& line, Point* intersection) const
|
|||
return false;
|
||||
}
|
||||
|
||||
std::string
|
||||
MultiPoint::dump_perl() const
|
||||
{
|
||||
std::ostringstream ret;
|
||||
ret << "[";
|
||||
for (Points::const_iterator p = this->points.begin(); p != this->points.end(); ++p) {
|
||||
ret << p->dump_perl();
|
||||
if (p != this->points.end()-1) ret << ",";
|
||||
}
|
||||
ret << "]";
|
||||
return ret.str();
|
||||
}
|
||||
|
||||
Points
|
||||
MultiPoint::_douglas_peucker(const Points &points, const double tolerance)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue