mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Bugfix: medial axis missed some segments. #2144
This commit is contained in:
parent
e897fbbd51
commit
30fa055995
6 changed files with 48 additions and 8 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue