Removed unnecessary accessors for input geometry mesh bounds

This commit is contained in:
Graham Pentheny
2025-08-06 11:12:13 -04:00
parent 213d6529a9
commit e6fd678ad8
2 changed files with 13 additions and 6 deletions

View File

@@ -138,9 +138,16 @@ void Sample::render()
0,
1.0f);
// Draw bounds
const float* min = inputGeometry->getMeshBoundsMin();
const float* max = inputGeometry->getMeshBoundsMax();
duDebugDrawBoxWire(&debugDraw, min[0], min[1], min[2], max[0], max[1], max[2], duRGBA(255, 255, 255, 128), 1.0f);
duDebugDrawBoxWire(
&debugDraw,
inputGeometry->meshBoundsMin[0],
inputGeometry->meshBoundsMin[1],
inputGeometry->meshBoundsMin[2],
inputGeometry->meshBoundsMax[0],
inputGeometry->meshBoundsMax[1],
inputGeometry->meshBoundsMax[2],
duRGBA(255, 255, 255, 128),
1.0f);
}
void Sample::renderOverlay(double* /*proj*/, double* /*model*/, int* /*view*/) {}