Skip to content

Commit

Permalink
Bug fix,. The method returned Optical threshold rather than density
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Mar 11, 2024
1 parent 6c6a4bc commit 54c466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/chai3d/src/world/CVoxelObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 54c466e

Please sign in to comment.