File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class HPP_FCL_DLLAPI ShapeBase : public CollisionGeometry {
55
55
// / \brief Copy constructor
56
56
ShapeBase (const ShapeBase& other) : CollisionGeometry(other) {}
57
57
58
- ShapeBase& operator =(const ShapeBase& /* other*/ ) { return * this ; }
58
+ ShapeBase& operator =(const ShapeBase& other) = default ;
59
59
60
60
virtual ~ShapeBase (){};
61
61
Original file line number Diff line number Diff line change 46
46
#include < hpp/fcl/BVH/BVH_utility.h>
47
47
#include < hpp/fcl/math/transform.h>
48
48
#include < hpp/fcl/shape/geometric_shapes.h>
49
+ #include < hpp/fcl/shape/geometric_shape_to_BVH_model.h>
49
50
#include < hpp/fcl/mesh_loader/assimp.h>
50
51
#include < hpp/fcl/mesh_loader/loader.h>
51
52
#include " utility.h"
@@ -370,3 +371,15 @@ BOOST_AUTO_TEST_CASE(load_illformated_mesh) {
370
371
MeshLoader loader;
371
372
BOOST_CHECK_NO_THROW (loader.load (filename));
372
373
}
374
+
375
+ BOOST_AUTO_TEST_CASE (test_convex) {
376
+ Box* box_ptr = new hpp::fcl::Box (1 , 1 , 1 );
377
+ CollisionGeometryPtr_t b1 (box_ptr);
378
+ BVHModel<OBBRSS> box_bvh_model = BVHModel<OBBRSS>();
379
+ generateBVHModel (box_bvh_model, *box_ptr, Transform3f ());
380
+ box_bvh_model.buildConvexRepresentation (false );
381
+
382
+ box_bvh_model.convex ->computeLocalAABB ();
383
+ std::shared_ptr<ConvexBase> convex_copy (box_bvh_model.convex ->clone ());
384
+ BOOST_CHECK (*convex_copy.get () == *box_bvh_model.convex .get ());
385
+ }
You can’t perform that action at this time.
0 commit comments