Collision Checker
boost_collision_queries.cc File Reference
#include "collision/solvers/boost/boost_collision_queries.h"
#include "collision/solvers/geometry_queries.h"
#include <boost/foreach.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/multi_polygon.hpp>
#include "collision/narrowphase/rectangle_aabb.h"
#include "collision/shape_group.h"
#include "collision/solvers/accelerators/detail/container_grid.h"

Go to the source code of this file.

Namespaces

 collision
 
 collision::solvers
 
 collision::solvers::solverBoost
 

Macros

#define BOOST_EPS   (0)
 

Typedefs

typedef boost::geometry::model::multi_polygon< bg_polygon_type > collision::solvers::solverBoost::bg_mpolygon_type
 

Functions

bool collision::solvers::solverBoost::boost_within (const BoostPolygon &polyg1, const BoostPolygon &polyg2)
 Returns true if the BoostPolygon polyg1 is completely contained within the other BoostPolygon object polyg2. More...
 
int collision::solvers::solverBoost::boost_poly_poly_convex_hull (const Polygon &pos1, const Polygon &pos2, collision::PolygonConstPtr &resPoly)
 Creates a collision Polygon of two RectangleOBB objects. The convex hull of the boolean union of the oriented rectangles is computed. More...
 
int collision::solvers::solverBoost::boost_obb_obb_convex_hull (const RectangleOBB &pos1, const RectangleOBB &pos2, collision::PolygonConstPtr &resPoly)
 
int collision::solvers::solverBoost::boost_ccd_convex_hull_collision (const ShapeGroup &sg, const RectangleOBB &pos1, const RectangleOBB &pos2, bool &res)
 Checks if the convex hull of the Boolean union of two given OBB boxes collides with any of the ShapeGroup objects. More...
 
int collision::solvers::solverBoost::boost_ccd_obb_sum_collision (const ShapeGroup &sg, const RectangleOBB &pos1, const RectangleOBB &pos2, bool &res)
 
int collision::solvers::solverBoost::boost_get_candidate_polygons_no_merge (const ShapeGroup &sg, const Shape &shape, std::vector< bg_polygon_type > &mpoly)
 
int collision::solvers::solverBoost::boost_polygon_enclosure (const ShapeGroup &sg, const RectangleOBB &obb, bool &res)
 
template<typename T >
int collision::solvers::solverBoost::boost_polygon_enclosure_grid (T &grid, std::vector< BoostPolygon *> polygons, AABB &aabb, const BoostPolygon *obj_poly, bool &res)
 
template int collision::solvers::solverBoost::boost_polygon_enclosure_grid< ContainerGrid< HorizontalGrid > > (ContainerGrid< HorizontalGrid > &grid, std::vector< BoostPolygon *> polygons, AABB &aabb, const BoostPolygon *obj_poly, bool &res)
 
template int collision::solvers::solverBoost::boost_polygon_enclosure_grid< ContainerGrid< VerticalGrid > > (ContainerGrid< VerticalGrid > &grid, std::vector< BoostPolygon *> polygons, AABB &aabb, const BoostPolygon *obj_poly, bool &res)
 
int collision::solvers::solverBoost::boost_ccd_convex_hull_polygon_enclosure (const ShapeGroup &sg, const RectangleOBB &pos1, const RectangleOBB &pos2, bool &res)
 
int collision::solvers::solverBoost::boost_ccd_obb_sum_polygon_enclosure (const ShapeGroup &sg, const RectangleOBB &pos1, const RectangleOBB &pos2, bool &res)
 

Macro Definition Documentation

◆ BOOST_EPS

#define BOOST_EPS   (0)

Definition at line 19 of file boost_collision_queries.cc.