From b350eb5f4d44e8448115796144375d79438d74ae Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Fri, 28 Apr 2017 14:19:07 +0200 Subject: NvCloth 1.1.0 Release. (22041545) --- NvCloth/src/cuda/CuFactory.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'NvCloth/src/cuda/CuFactory.cpp') diff --git a/NvCloth/src/cuda/CuFactory.cpp b/NvCloth/src/cuda/CuFactory.cpp index 460cebc..397262c 100644 --- a/NvCloth/src/cuda/CuFactory.cpp +++ b/NvCloth/src/cuda/CuFactory.cpp @@ -35,7 +35,6 @@ #include "CuCheckSuccess.h" #include "CuContextLock.h" #include -#include #include "CuSolverKernelBlob.h" #if PX_VC @@ -155,7 +154,7 @@ cloth::Fabric* cloth::CuFactory::createFabric(uint32_t numParticles, Range particles, Fabric& fabric) { - return NV_CLOTH_NEW(CuClothImpl)(*this, fabric, particles); + return NV_CLOTH_NEW(CuCloth)(*this, static_cast(fabric), particles); } cloth::Solver* cloth::CuFactory::createSolver() @@ -255,7 +254,7 @@ void cloth::CuFactory::extractCollisionData(const Cloth& cloth, Range sp { NV_CLOTH_ASSERT(&cloth.getFactory() == this); - const CuCloth& cuCloth = static_cast(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); NV_CLOTH_ASSERT(spheres.empty() || spheres.size() == cuCloth.mStartCollisionSpheres.size()); NV_CLOTH_ASSERT(capsules.empty() || capsules.size() == cuCloth.mCapsuleIndices.size() * 2); @@ -287,7 +286,7 @@ void cloth::CuFactory::extractMotionConstraints(const Cloth& cloth, Range(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); if (cuCloth.mMotionConstraints.mHostCopy.size()) { @@ -314,7 +313,7 @@ void cloth::CuFactory::extractSeparationConstraints(const Cloth& cloth, Range(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); if (cuCloth.mSeparationConstraints.mHostCopy.size()) { @@ -341,7 +340,7 @@ void cloth::CuFactory::extractParticleAccelerations(const Cloth& cloth, Range(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); if (cuCloth.mParticleAccelerationsHostCopy.size()) { @@ -359,7 +358,7 @@ void cloth::CuFactory::extractVirtualParticles(const Cloth& cloth, Range(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); if (destWeights.size() > 0) { @@ -400,7 +399,7 @@ void cloth::CuFactory::extractVirtualParticles(const Cloth& cloth, Range destIndices) const { - const CuCloth& cuCloth = static_cast(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); NV_CLOTH_ASSERT(destIndices.size() == cuCloth.mSelfCollisionIndices.size()); copyToHost(cuCloth.mSelfCollisionIndices.begin().get(), cuCloth.mSelfCollisionIndices.end().get(), destIndices.begin()); @@ -408,7 +407,7 @@ void cloth::CuFactory::extractSelfCollisionIndices(const Cloth& cloth, Range destRestPositions) const { - const CuCloth& cuCloth = static_cast(cloth).mCloth; + const CuCloth& cuCloth = static_cast(cloth); NV_CLOTH_ASSERT(destRestPositions.size() == cuCloth.mRestPositions.size()); copyToHost(cuCloth.mRestPositions.begin().get(), cuCloth.mRestPositions.end().get(), destRestPositions.begin()); } -- cgit v1.2.3