mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-24 03:14:28 +08:00
Fixed return value of liang_barsky_line_clipping
This commit is contained in:
parent
3e73473334
commit
f0616b0736
@ -266,9 +266,10 @@ inline bool liang_barsky_line_clipping(
|
||||
// Clipped successfully.
|
||||
x1 = x0 + interval.second * v;
|
||||
x0 += interval.first * v;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Based on Liang-Barsky function by Daniel White @ http://www.skytopia.com/project/articles/compsci/clipping.html
|
||||
template<typename T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user