From 54c466e71bfc7e05c019c71d4c8aa2f96a2611d4 Mon Sep 17 00:00:00 2001 From: Adnan Munawar Date: Tue, 12 Mar 2024 03:27:24 +0500 Subject: [PATCH] Bug fix,. The method returned Optical threshold rather than density --- external/chai3d/src/world/CVoxelObject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/chai3d/src/world/CVoxelObject.h b/external/chai3d/src/world/CVoxelObject.h index 8c33c13a0..d720a320c 100644 --- a/external/chai3d/src/world/CVoxelObject.h +++ b/external/chai3d/src/world/CVoxelObject.h @@ -196,7 +196,7 @@ class cVoxelObject : public cMesh void setOpticalDensity(const float a_opticalDensity) { m_opticalDensity = fabs(a_opticalDensity); } //! This method returns the optical density factor. - float getOpticalDensity() { return(m_opacityThreshold); } + float getOpticalDensity() { return(m_opticalDensity); } //! This method enables or disables linear interpolation. void setUseLinearInterpolation(const bool a_useLinearInterpolation) { m_useLinearInterpolation = a_useLinearInterpolation; }