mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 03:51:11 +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)
|
inline Point normal(Point pt, double scale)
|
||||||
{
|
{
|
||||||
double length = scale_(sqrt(vsize2_with_unscale(pt)));
|
double length = scale_(sqrt(vsize2_with_unscale(pt)));
|
||||||
|
if (length < SCALED_EPSILON) {
|
||||||
|
return pt;
|
||||||
|
}
|
||||||
|
|
||||||
return pt * (scale / length);
|
return pt * (scale / length);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user