mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Fixed return value of liang_barsky_line_clipping
This commit is contained in:
@@ -266,8 +266,9 @@ inline bool liang_barsky_line_clipping(
|
|||||||
// Clipped successfully.
|
// Clipped successfully.
|
||||||
x1 = x0 + interval.second * v;
|
x1 = x0 + interval.second * v;
|
||||||
x0 += interval.first * v;
|
x0 += interval.first * v;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Based on Liang-Barsky function by Daniel White @ http://www.skytopia.com/project/articles/compsci/clipping.html
|
// Based on Liang-Barsky function by Daniel White @ http://www.skytopia.com/project/articles/compsci/clipping.html
|
||||||
|
|||||||
Reference in New Issue
Block a user