Classes | Functions | Variables
bodies::detail Namespace Reference

Classes

struct  intersc
 
struct  interscOrder
 

Functions

static double distanceSQR (const Eigen::Vector3d &p, const Eigen::Vector3d &origin, const Eigen::Vector3d &dir)
 Compute the square of the distance between a ray and a point Note: this requires 'dir' to be normalized. More...
 
void filterIntersections (std::vector< detail::intersc > &ipts, EigenSTL::vector_Vector3d *intersections, const size_t count)
 Take intersections points in ipts and add them to intersections, filtering duplicates. More...
 
static std::map< size_t, size_t > & getTriangleForPlane (const ConvexMesh *mesh)
 

Variables

std::unordered_map< const ConvexMesh *, std::map< size_t, size_t > > g_triangle_for_plane_
 
std::mutex g_triangle_for_plane_mutex
 Lock this mutex every time you work with g_triangle_for_plane_. More...
 
static const double ZERO = 1e-9
 

Function Documentation

◆ distanceSQR()

static double bodies::detail::distanceSQR ( const Eigen::Vector3d &  p,
const Eigen::Vector3d &  origin,
const Eigen::Vector3d &  dir 
)
inlinestatic

Compute the square of the distance between a ray and a point Note: this requires 'dir' to be normalized.

Definition at line 82 of file bodies.cpp.

◆ filterIntersections()

void bodies::detail::filterIntersections ( std::vector< detail::intersc > &  ipts,
EigenSTL::vector_Vector3d intersections,
const size_t  count 
)

Take intersections points in ipts and add them to intersections, filtering duplicates.

Parameters
iptsThe source list of intersections (will be modified (sorted)).
intersectionsThe output list of intersection points.
countThe maximum count of returned intersection points. 0 = return all points.

Definition at line 117 of file bodies.cpp.

◆ getTriangleForPlane()

static std::map<size_t, size_t>& bodies::detail::getTriangleForPlane ( const ConvexMesh mesh)
static

Definition at line 140 of file bodies.cpp.

Variable Documentation

◆ g_triangle_for_plane_

std::unordered_map<const ConvexMesh*, std::map<size_t, size_t> > bodies::detail::g_triangle_for_plane_

Definition at line 138 of file bodies.cpp.

◆ g_triangle_for_plane_mutex

std::mutex bodies::detail::g_triangle_for_plane_mutex

Lock this mutex every time you work with g_triangle_for_plane_.

Definition at line 139 of file bodies.cpp.

◆ ZERO

const double bodies::detail::ZERO = 1e-9
static

Definition at line 78 of file bodies.cpp.



geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Thu May 20 2021 02:12:07