Sample_TileMesh: Removed "keep intermediate results" option

now always on
This commit is contained in:
Graham Pentheny
2025-04-08 23:55:11 -04:00
parent 4def1f9a58
commit 17ffcd1191
2 changed files with 0 additions and 19 deletions

View File

@@ -190,7 +190,6 @@ void Sample_TileMesh::handleSettings()
{
Sample::handleCommonSettings();
if (imguiCheck("Keep Itermediate Results", m_keepIntermediateResults)) { m_keepIntermediateResults = !m_keepIntermediateResults; }
if (imguiCheck("Build All Tiles", m_buildAll)) { m_buildAll = !m_buildAll; }
imguiLabel("Tiling");
@@ -877,11 +876,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
}
}
if (!m_keepIntermediateResults)
{
delete [] m_triareas; m_triareas = 0;
}
// Once all geometry is rasterized, we do initial pass of filtering to
// remove unwanted overhangs caused by the conservative rasterization
// as well as filter spans where the character cannot possibly stand.
@@ -913,12 +907,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
return 0;
}
if (!m_keepIntermediateResults)
{
rcFreeHeightField(m_heightfield);
m_heightfield = 0;
}
// Erode the walkable area by agent radius.
if (!rcErodeWalkableArea(m_buildContext, m_config.walkableRadius, *m_compactHeightfield))
{
@@ -1040,12 +1028,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
return 0;
}
if (!m_keepIntermediateResults)
{
rcFreeCompactHeightfield(m_compactHeightfield); m_compactHeightfield = 0;
rcFreeContourSet(m_contourSet); m_contourSet = 0;
}
unsigned char* navData = 0;
int navDataSize = 0;
if (m_config.maxVertsPerPoly <= DT_VERTS_PER_POLYGON)