mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-01 16:58:01 +02:00
Bugfix: medial axis missed some segments. #2144
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user