mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 09:32:09 +00:00
WIP: Fix of arrangement after reducing ClipperLib::cInt
from int64_t to int32_t
This commit is contained in:
@@ -474,8 +474,8 @@ inline _Box<P> _Box<P>::infinite(const P& center) {
|
||||
|
||||
// It is important for Mx and My to be strictly less than half of the
|
||||
// range of type C. width(), height() and area() will not overflow this way.
|
||||
C Mx = C((std::numeric_limits<C>::lowest() + 2 * getX(center)) / 2.01);
|
||||
C My = C((std::numeric_limits<C>::lowest() + 2 * getY(center)) / 2.01);
|
||||
C Mx = C((std::numeric_limits<C>::lowest() + 2 * getX(center)) / 4.01);
|
||||
C My = C((std::numeric_limits<C>::lowest() + 2 * getY(center)) / 4.01);
|
||||
|
||||
ret.maxCorner() = center - P{Mx, My};
|
||||
ret.minCorner() = center + P{Mx, My};
|
||||
|
||||
Reference in New Issue
Block a user