mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 22:26:07 +08:00
Fix error "Coordinate outside allowed range"
This commit is contained in:
parent
98135299e8
commit
a3ac1fc4f4
@ -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…
x
Reference in New Issue
Block a user