aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp')
-rw-r--r--PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp b/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp
index 53d67504..da1302d2 100644
--- a/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp
+++ b/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.cpp
@@ -27,7 +27,6 @@
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
-
#include "PxVisualizationParameter.h"
#include "PsIntrinsics.h"
#include "CmPhysXCommon.h"
@@ -375,8 +374,6 @@ bool Gu::ConvexMesh::load(PxInputStream& stream)
return true;
}
-
-
void Gu::ConvexMesh::release()
{
decRefCount();
@@ -419,38 +416,3 @@ PxBounds3 Gu::ConvexMesh::getLocalBounds() const
PX_ASSERT(mHullData.mAABB.isValid());
return PxBounds3::centerExtents(mHullData.mAABB.mCenter, mHullData.mAABB.mExtents);
}
-
-
-#if PX_ENABLE_DEBUG_VISUALIZATION
-#include "CmMatrix34.h"
-#include "GuDebug.h"
-void Gu::ConvexMesh::debugVisualize(Cm::RenderOutput& out, const PxTransform& pose, const PxMeshScale& scale) const
-{
- const PxU32 scolor = PxU32(PxDebugColor::eARGB_MAGENTA);
-
- const PxVec3* vertices = mHullData.getHullVertices();
- const PxU8* indexBuffer = mHullData.getVertexData8();
- const PxU32 nbPolygons = getNbPolygonsFast();
-
- const PxMat44 m44(PxMat33(pose.q) * scale.toMat33(), pose.p);
-
- out << m44 << scolor; // PT: no need to output this for each segment!
-
- for (PxU32 i = 0; i < nbPolygons; i++)
- {
- const PxU32 pnbVertices = mHullData.mPolygons[i].mNbVerts;
-
- PxVec3 begin = m44.transform(vertices[indexBuffer[0]]); // PT: transform it only once before the loop starts
- for (PxU32 j = 1; j < pnbVertices; j++)
- {
- PxVec3 end = m44.transform(vertices[indexBuffer[j]]);
- out.outputSegment(begin, end);
- begin = end;
- }
- out.outputSegment(begin, m44.transform(vertices[indexBuffer[0]]));
-
- indexBuffer += pnbVertices;
- }
-}
-
-#endif