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

@@ -23,7 +23,6 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <algorithm>
#include <climits>
#ifdef FC_OS_WIN32
#include <windows.h>
#endif
@@ -607,7 +606,7 @@ void SoFCMeshObjectShape::initClass()
}
SoFCMeshObjectShape::SoFCMeshObjectShape()
: renderTriangleLimit(UINT_MAX)
: renderTriangleLimit(std::numeric_limits<unsigned>::max())
{
SO_NODE_CONSTRUCTOR(SoFCMeshObjectShape);
setName(SoFCMeshObjectShape::getClassTypeId().getName());
@@ -1235,7 +1234,7 @@ void SoFCMeshSegmentShape::initClass()
}
SoFCMeshSegmentShape::SoFCMeshSegmentShape()
: renderTriangleLimit(UINT_MAX)
: renderTriangleLimit(std::numeric_limits<unsigned>::max())
{
SO_NODE_CONSTRUCTOR(SoFCMeshSegmentShape);
SO_NODE_ADD_FIELD(index, (0));