Smaller triangles

This commit is contained in:
2019-06-19 17:01:30 +02:00
parent 91e598a828
commit 1387af5da9
2 changed files with 6 additions and 5 deletions

View File

@@ -139,10 +139,10 @@ namespace Settings {
dataDir + "Pixel2/Path1_7208.csv",
},
{
{ NUC1, {1, { 8.1, 18.7, 0.8}, 2.25, 0, 6.156f} }, // NUC 1
{ NUC2, {2, { 8.4, 27.3, 0.8}, 3.25, 0, 5.650f} }, // NUC 2
{ NUC3, {3, {21.3, 19.3, 0.8}, 2.50, 0, 6.107f} }, // NUC 3
{ NUC4, {4, {20.6, 26.8, 0.8}, 3.00, 0, 3.985f} }, // NUC 4
{ NUC1, {1, { 8.1, 18.7, 0.8}, 2.25, 0, 10.0f} }, // NUC 1
{ NUC2, {2, { 8.4, 27.3, 0.8}, 3.25, 0, 10.0f} }, // NUC 2
{ NUC3, {3, {21.3, 19.3, 0.8}, 2.50, 0, 10.0f} }, // NUC 3
{ NUC4, {4, {20.6, 26.8, 0.8}, 3.00, 0, 10.0f} }, // NUC 4
},
{ 1, 2, 6, 7, 6, 2, 1 }
};

View File

@@ -77,6 +77,7 @@ static Stats::Statistics<float> run(Settings::DataSetup setup, int numFile, std:
// mesh
NM::NavMeshSettings set;
set.maxQuality_m = 0.10; // because of narrow hallways and small rooms reduce min. triangle size (default is 0.2)
MyNavMesh mesh;
MyNavMeshFactory fac(&mesh, set);
fac.build(map);
@@ -231,7 +232,7 @@ static Stats::Statistics<float> run(Settings::DataSetup setup, int numFile, std:
plot.setActivity((int) act.get());
//plot.setView(0, 0);
//plot.splot.getView().setEnabled(false);
//plot.splot.getView().setCamera(0, 0);
plot.splot.getView().setCamera(0, 0);
//plot.splot.getView().setEqualXY(true);
plot.plot();