mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Print bed not considered as object in arrange anymore.
This commit is contained in:
parent
fab3634931
commit
121b6c078b
2 changed files with 23 additions and 17 deletions
|
@ -191,6 +191,15 @@ template<class C> bool all_of(const C &container) {
|
|||
});
|
||||
}
|
||||
|
||||
template<class X, class Y> inline X ceil_i(X x, Y y)
|
||||
{
|
||||
static_assert(std::is_integral<X>::value &&
|
||||
std::is_integral<Y>::value && sizeof(X) >= sizeof(Y),
|
||||
"");
|
||||
|
||||
return (x % y) ? x / y + 1 : x / y;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // MTUTILS_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue