aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/PhaseConfig.cpp
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
committerMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
commitca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch)
treeb06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/src/PhaseConfig.cpp
parentForced rename of platform folders in cmake dir. Git didn't pick this up before. (diff)
downloadnvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz
nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/src/PhaseConfig.cpp')
-rw-r--r--NvCloth/src/PhaseConfig.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/NvCloth/src/PhaseConfig.cpp b/NvCloth/src/PhaseConfig.cpp
index 7ea97f3..b5db3b0 100644
--- a/NvCloth/src/PhaseConfig.cpp
+++ b/NvCloth/src/PhaseConfig.cpp
@@ -30,6 +30,7 @@
#include "NvCloth/PhaseConfig.h"
#include "PsMathUtils.h"
#include <algorithm>
+#include "ClothImpl.h"
using namespace physx;
@@ -43,14 +44,6 @@ PhaseConfig transform(const PhaseConfig&);
using namespace nv;
-namespace
-{
-float safeLog2(float x)
-{
- float saturated = std::max(0.0f, std::min(x, 1.0f));
- return saturated ? shdfnd::log2(saturated) : -FLT_MAX_EXP;
-}
-}
// convert from user input to solver format
cloth::PhaseConfig cloth::transform(const PhaseConfig& config)