Skip to content
Snippets Groups Projects
Commit 9b2e6c6d authored by isucan's avatar isucan
Browse files

add user data for CollisionGeometry

git-svn-id: https://kforge.ros.org/fcl/fcl_ros@57 253336fb-580f-4252-a368-f3cef5a2a82b
parent 0ccee846
No related branches found
No related tags found
No related merge requests found
...@@ -61,11 +61,24 @@ public: ...@@ -61,11 +61,24 @@ public:
virtual void computeLocalAABB() = 0; virtual void computeLocalAABB() = 0;
void* getUserData() const
{
return user_data;
}
void setUserData(void *data)
{
user_data = data;
}
/** AABB center in local coordinate */ /** AABB center in local coordinate */
Vec3f aabb_center; Vec3f aabb_center;
/** AABB radius */ /** AABB radius */
BVH_REAL aabb_radius; BVH_REAL aabb_radius;
/** pointer to user defined data specific to this object */
void *user_data;
}; };
class CollisionObject class CollisionObject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment