From 174f6009bb131e1e6d7a5ce3832a477417c9cceb Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 28 Nov 2007 20:14:01 +0000 Subject: [PATCH] make getNumPoints const correct, add const getPoints(). Thanks Dirk http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1725 --- src/BulletCollision/CollisionShapes/btConvexHullShape.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BulletCollision/CollisionShapes/btConvexHullShape.h b/src/BulletCollision/CollisionShapes/btConvexHullShape.h index 0928d68b8..abde7862b 100644 --- a/src/BulletCollision/CollisionShapes/btConvexHullShape.h +++ b/src/BulletCollision/CollisionShapes/btConvexHullShape.h @@ -44,7 +44,12 @@ public: return &m_points[0]; } - int getNumPoints() + const btPoint3* getPoints() const + { + return &m_points[0]; + } + + int getNumPoints() const { return m_points.size(); }