Collision Checker
boost_collision_object.cc
Go to the documentation of this file.
2 
4 
5 namespace collision {
6 namespace solvers {
7 namespace solverBoost {
8 
9 std::shared_ptr<BoostObjectInternal>
11  if (!object_cached)
12 
13  {
15 
16  {
18  boost_obj = std::static_pointer_cast<BoostObjectInternal>(
19  std::make_shared<BoostPolygon>(
20  static_cast<const collision::Polygon*>(m_parent)));
21  break;
22 
23  default:
24  throw 0;
25  }
26 
27  object_cached = true;
28  }
29  return (boost_obj);
30 }
31 
32 } // namespace solverBoost
33 } // namespace solvers
34 } // namespace collision
std::shared_ptr< BoostObjectInternal > getCollisionObject_boost(void) const
virtual CollisionObjectType getCollisionObjectType() const
Polygon contains Triangles and Vertices.
Definition: polygon.h:29