use cmath and C++ (std::) versions of functions
This commit is contained in:
@@ -148,9 +148,9 @@ bool FixInfacingNormalsProcess::ProcessMesh( aiMesh* pcMesh, unsigned int index)
|
||||
// Check whether this is a planar surface
|
||||
const float fDelta1_yz = fDelta1_y * fDelta1_z;
|
||||
|
||||
if (fDelta1_x < 0.05f * sqrtf( fDelta1_yz ))return false;
|
||||
if (fDelta1_y < 0.05f * sqrtf( fDelta1_z * fDelta1_x ))return false;
|
||||
if (fDelta1_z < 0.05f * sqrtf( fDelta1_y * fDelta1_x ))return false;
|
||||
if (fDelta1_x < 0.05f * std::sqrt( fDelta1_yz ))return false;
|
||||
if (fDelta1_y < 0.05f * std::sqrt( fDelta1_z * fDelta1_x ))return false;
|
||||
if (fDelta1_z < 0.05f * std::sqrt( fDelta1_y * fDelta1_x ))return false;
|
||||
|
||||
// now compare the volumes of the bounding boxes
|
||||
if (std::fabs(fDelta0_x * fDelta0_y * fDelta0_z) <
|
||||
|
||||
Reference in New Issue
Block a user