From e589a40da6b12e6d70629c0ebed39fecfe80e3ed Mon Sep 17 00:00:00 2001 From: k-a-z-u Date: Wed, 17 Jan 2018 10:33:52 +0100 Subject: [PATCH] added const member change --- math/distribution/Const.h | 4 ++++ navMesh/NavMeshSettings.h | 4 +++- navMesh/meta/NavMeshDijkstra.h | 4 ++++ navMesh/walk/NavMeshWalkSemiDirected.h | 4 ++++ tests/navMesh/TestNavMeshDijkstra.cpp | 0 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 math/distribution/Const.h create mode 100644 navMesh/meta/NavMeshDijkstra.h create mode 100644 navMesh/walk/NavMeshWalkSemiDirected.h create mode 100644 tests/navMesh/TestNavMeshDijkstra.cpp diff --git a/math/distribution/Const.h b/math/distribution/Const.h new file mode 100644 index 0000000..30bd63a --- /dev/null +++ b/math/distribution/Const.h @@ -0,0 +1,4 @@ +#ifndef CONST_H +#define CONST_H + +#endif // CONST_H diff --git a/navMesh/NavMeshSettings.h b/navMesh/NavMeshSettings.h index 1ef3de7..350fcc3 100644 --- a/navMesh/NavMeshSettings.h +++ b/navMesh/NavMeshSettings.h @@ -36,7 +36,9 @@ namespace NM { /** algorithm choice */ SamplePartitionType partitionType = SamplePartitionType::SAMPLE_PARTITION_WATERSHED; - const float regionMinSize = 2;//8; // (isolated) regions smaller than this will not be rendered?! + float regionMinSize = 8; // (isolated) regions smaller than this will not be rendered?! + + const float regionMergeSize = 20; //?? const int vertsPerPoly = 3;//6.0f; const float detailSampleDist = 6.0f; diff --git a/navMesh/meta/NavMeshDijkstra.h b/navMesh/meta/NavMeshDijkstra.h new file mode 100644 index 0000000..7416bd5 --- /dev/null +++ b/navMesh/meta/NavMeshDijkstra.h @@ -0,0 +1,4 @@ +#ifndef NAVMESHDIJKSTRA_H +#define NAVMESHDIJKSTRA_H + +#endif // NAVMESHDIJKSTRA_H diff --git a/navMesh/walk/NavMeshWalkSemiDirected.h b/navMesh/walk/NavMeshWalkSemiDirected.h new file mode 100644 index 0000000..494545f --- /dev/null +++ b/navMesh/walk/NavMeshWalkSemiDirected.h @@ -0,0 +1,4 @@ +#ifndef NAVMESHWALKSEMIDIRECTED_H +#define NAVMESHWALKSEMIDIRECTED_H + +#endif // NAVMESHWALKSEMIDIRECTED_H diff --git a/tests/navMesh/TestNavMeshDijkstra.cpp b/tests/navMesh/TestNavMeshDijkstra.cpp new file mode 100644 index 0000000..e69de29