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

@@ -86,7 +86,7 @@ PyObject* MeshPointPy::unbound(PyObject* args)
if (!PyArg_ParseTuple(args, "")) {
return nullptr;
}
getMeshPointPtr()->Index = UINT_MAX;
getMeshPointPtr()->Index = std::numeric_limits<unsigned>::max();
getMeshPointPtr()->Mesh = nullptr;
Py_Return;
}
@@ -98,7 +98,7 @@ Py::Long MeshPointPy::getIndex() const
Py::Boolean MeshPointPy::getBound() const
{
return {getMeshPointPtr()->Index != UINT_MAX};
return {getMeshPointPtr()->Index != std::numeric_limits<unsigned>::max()};
}
Py::Object MeshPointPy::getNormal() const