Skip to content

Commit 9ae4c95

Browse files
committed
Add exception for unsupported geometries
1 parent f3828a0 commit 9ae4c95

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/rl/sg/fcl/Shape.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include <boost/make_shared.hpp>
4545
#endif
4646

47+
#include "../Exception.h"
4748
#include "Body.h"
4849
#include "Shape.h"
4950

@@ -232,6 +233,10 @@ namespace rl
232233
this->geometry = ::std::make_shared<Sphere>(sphere->radius.getValue());
233234
#endif
234235
}
236+
else
237+
{
238+
throw Exception("rl::sg::fcl::Shape::() - geometry not supported");
239+
}
235240

236241
this->object = ::std::make_shared<CollisionObject>(this->geometry, Transform3());
237242

0 commit comments

Comments
 (0)