mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 03:11:47 +00:00
Revert "ENH:instead of prime_volume by filament_prime_volume"
This reverts commit e7e6405ad3.
This commit is contained in:
@@ -133,17 +133,6 @@ inline DataType round_divide(DataType dividend, DataType divisor) //!< Return di
|
||||
return (dividend + divisor / 2) / divisor;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T get_max_element(const std::vector<T> &vec)
|
||||
{
|
||||
static_assert(std::is_arithmetic<T>::value, "T must be of numeric type.");
|
||||
if (vec.empty())
|
||||
return static_cast<T>(0);
|
||||
|
||||
return *std::max_element(vec.begin(), vec.end());
|
||||
}
|
||||
|
||||
|
||||
template <typename From, typename To>
|
||||
std::vector<To> convert_vector(const std::vector<From>& src) {
|
||||
std::vector<To> dst;
|
||||
|
||||
Reference in New Issue
Block a user