Mesh: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 19:01:24 +01:00
parent bc462c44cc
commit a9c66476f8
40 changed files with 187 additions and 204 deletions

View File

@@ -29,8 +29,10 @@
namespace Mesh
{
const App::PropertyIntegerConstraint::Constraints intSampling = {0, INT_MAX, 1};
const App::PropertyLength::Constraints floatRange = {0.0, FLT_MAX, 1.0};
const App::PropertyIntegerConstraint::Constraints intSampling = {0,
std::numeric_limits<int>::max(),
1};
const App::PropertyLength::Constraints floatRange = {0.0, std::numeric_limits<float>::max(), 1.0};
} // namespace Mesh
using namespace Mesh;