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

@@ -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();