Mesh: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user