[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30373] branches/soc-2010-aligorith-2/ source/blender: Bullet SoC - Small tweak renaming Bullet-API method for adding vertices to convex hulls in preparation for further experiments
Joshua Leung
aligorith at gmail.com
Thu Jul 15 14:15:31 CEST 2010
Revision: 30373
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30373
Author: aligorith
Date: 2010-07-15 14:15:31 +0200 (Thu, 15 Jul 2010)
Log Message:
-----------
Bullet SoC - Small tweak renaming Bullet-API method for adding vertices to convex hulls in preparation for further experiments
Modified Paths:
--------------
branches/soc-2010-aligorith-2/source/blender/blenkernel/intern/rigidbody.c
branches/soc-2010-aligorith-2/source/blender/rigidbody/RBI_api.h
branches/soc-2010-aligorith-2/source/blender/rigidbody/rb_bullet_api.cpp
Modified: branches/soc-2010-aligorith-2/source/blender/blenkernel/intern/rigidbody.c
===================================================================
--- branches/soc-2010-aligorith-2/source/blender/blenkernel/intern/rigidbody.c 2010-07-15 12:12:52 UTC (rev 30372)
+++ branches/soc-2010-aligorith-2/source/blender/blenkernel/intern/rigidbody.c 2010-07-15 12:15:31 UTC (rev 30373)
@@ -161,7 +161,7 @@
* NOTE: for best results, we should have < 100 verts
*/
for (i = 0; i < numVerts; i++)
- rbShapeAddVert(shape, vertCos[i]);
+ rbConvexHullAddVert(shape, vertCos[i]);
/* free temp data */
MEM_freeN(vertCos);
Modified: branches/soc-2010-aligorith-2/source/blender/rigidbody/RBI_api.h
===================================================================
--- branches/soc-2010-aligorith-2/source/blender/rigidbody/RBI_api.h 2010-07-15 12:12:52 UTC (rev 30372)
+++ branches/soc-2010-aligorith-2/source/blender/rigidbody/RBI_api.h 2010-07-15 12:15:31 UTC (rev 30373)
@@ -196,7 +196,7 @@
/* Convex Hull */
extern rbCollisionShape *rbShapeNewConvexHull();
-extern void rbShapeAddVert(rbCollisionShape *cshape, const float co[3]);
+extern void rbConvexHullAddVert(rbCollisionShape *cshape, const float co[3]);
/* Cleanup --------------------------- */
Modified: branches/soc-2010-aligorith-2/source/blender/rigidbody/rb_bullet_api.cpp
===================================================================
--- branches/soc-2010-aligorith-2/source/blender/rigidbody/rb_bullet_api.cpp 2010-07-15 12:12:52 UTC (rev 30372)
+++ branches/soc-2010-aligorith-2/source/blender/rigidbody/rb_bullet_api.cpp 2010-07-15 12:15:31 UTC (rev 30373)
@@ -517,7 +517,7 @@
return (rbCollisionShape*) new(mem) btConvexHullShape();
}
-void rbShapeAddVert(rbCollisionShape *cshape, const float co[3])
+void rbConvexHullAddVert(rbCollisionShape *cshape, const float co[3])
{
btConvexHullShape *convexHullShape = reinterpret_cast<btConvexHullShape*>(cshape);
convexHullShape->addPoint(btVector3(co[0], co[1], co[2]));
More information about the Bf-blender-cvs
mailing list