Changeset 7983 for code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btConvexHullShape.h
- Timestamp:
- Feb 27, 2011, 7:43:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btConvexHullShape.h
r5781 r7983 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. … … 21 21 #include "LinearMath/btAlignedObjectArray.h" 22 22 23 23 24 ///The btConvexHullShape implements an implicit convex hull of an array of vertices. 24 25 ///Bullet provides a general and fast collision detector for convex shapes based on GJK and EPA using localGetSupportingVertex. 25 ATTRIBUTE_ALIGNED16(class) btConvexHullShape : public btPolyhedralConvex Shape26 ATTRIBUTE_ALIGNED16(class) btConvexHullShape : public btPolyhedralConvexAabbCachingShape 26 27 { 27 28 btAlignedObjectArray<btVector3> m_unscaledPoints; … … 89 90 virtual void setLocalScaling(const btVector3& scaling); 90 91 92 virtual int calculateSerializeBufferSize() const; 93 94 ///fills the dataBuffer and returns the struct name (and 0 on failure) 95 virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; 96 91 97 }; 98 99 ///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 100 struct btConvexHullShapeData 101 { 102 btConvexInternalShapeData m_convexInternalShapeData; 103 104 btVector3FloatData *m_unscaledPointsFloatPtr; 105 btVector3DoubleData *m_unscaledPointsDoublePtr; 106 107 int m_numUnscaledPoints; 108 char m_padding3[4]; 109 110 }; 111 112 113 SIMD_FORCE_INLINE int btConvexHullShape::calculateSerializeBufferSize() const 114 { 115 return sizeof(btConvexHullShapeData); 116 } 92 117 93 118
Note: See TracChangeset
for help on using the changeset viewer.