From 775b3525f21f53f47a3473a4e411a310a8ce4ede Mon Sep 17 00:00:00 2001
From: Gabriele Buondonno <gbuondon@laas.fr>
Date: Fri, 15 Nov 2019 10:29:19 +0100
Subject: [PATCH] [Sphere] Fix volume computation

---
 include/hpp/fcl/shape/geometric_shapes.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hpp/fcl/shape/geometric_shapes.h b/include/hpp/fcl/shape/geometric_shapes.h
index d991f4e0..60695874 100644
--- a/include/hpp/fcl/shape/geometric_shapes.h
+++ b/include/hpp/fcl/shape/geometric_shapes.h
@@ -143,7 +143,7 @@ public:
 
   FCL_REAL computeVolume() const
   {
-    return 4 * boost::math::constants::pi<FCL_REAL>() * radius * radius / 3;
+    return 4 * boost::math::constants::pi<FCL_REAL>() * radius * radius * radius / 3;
   }
 };
 
-- 
GitLab