mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-20 03:22:18 -07:00
Fix error "Coordinate outside allowed range"
This commit is contained in:
parent
98135299e8
commit
a3ac1fc4f4
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ inline Point turn90_ccw(const Point pt)
|
|||
inline Point normal(Point pt, double scale)
|
||||
{
|
||||
double length = scale_(sqrt(vsize2_with_unscale(pt)));
|
||||
if (length < SCALED_EPSILON) {
|
||||
return pt;
|
||||
}
|
||||
|
||||
return pt * (scale / length);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue