Changeset 8351 for code/trunk/src/external/bullet/BulletCollision/CollisionShapes/btConvexPointCloudShape.h
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/bullet/BulletCollision/CollisionShapes/btConvexPointCloudShape.h
r5781 r8351 1 1 /* 2 2 Bullet Continuous Collision Detection and Physics Library 3 Copyright (c) 2003-200 6 Erwin Coumans http://continuousphysics.com/Bullet/3 Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org 4 4 5 5 This software is provided 'as-is', without any express or implied warranty. … … 22 22 23 23 ///The btConvexPointCloudShape implements an implicit convex hull of an array of vertices. 24 ATTRIBUTE_ALIGNED16(class) btConvexPointCloudShape : public btPolyhedralConvex Shape24 ATTRIBUTE_ALIGNED16(class) btConvexPointCloudShape : public btPolyhedralConvexAabbCachingShape 25 25 { 26 26 btVector3* m_unscaledPoints; … … 29 29 public: 30 30 BT_DECLARE_ALIGNED_ALLOCATOR(); 31 32 btConvexPointCloudShape() 33 { 34 m_localScaling.setValue(1.f,1.f,1.f); 35 m_shapeType = CONVEX_POINT_CLOUD_SHAPE_PROXYTYPE; 36 m_unscaledPoints = 0; 37 m_numPoints = 0; 38 } 31 39 32 40 btConvexPointCloudShape(btVector3* points,int numPoints, const btVector3& localScaling,bool computeAabb = true) … … 41 49 } 42 50 43 void setPoints (btVector3* points, int numPoints, bool computeAabb = true )51 void setPoints (btVector3* points, int numPoints, bool computeAabb = true,const btVector3& localScaling=btVector3(1.f,1.f,1.f)) 44 52 { 45 53 m_unscaledPoints = points; 46 54 m_numPoints = numPoints; 55 m_localScaling = localScaling; 47 56 48 57 if (computeAabb)
Note: See TracChangeset
for help on using the changeset viewer.