1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-21 09:44:26 +00:00

Bugfix: medial axis missed some segments. #2144

This commit is contained in:
Alessandro Ranellucci
2014-08-03 15:03:11 +02:00
parent e897fbbd51
commit 30fa055995
6 changed files with 48 additions and 8 deletions
+8
View File
@@ -100,6 +100,14 @@ Line::atan2_() const
return atan2(this->b.y - this->a.y, this->b.x - this->a.x);
}
double
Line::orientation() const
{
double angle = this->atan2_();
if (angle < 0) angle = 2*PI + angle;
return angle;
}
double
Line::direction() const
{