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 |
|
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.
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.
ipts | The source list of intersections (will be modified (sorted)). |
intersections | The output list of intersection points. |
count | The maximum count of returned intersection points. 0 = return all points. |
Definition at line 117 of file bodies.cpp.
|
static |
Definition at line 140 of file bodies.cpp.
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.
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.
|
static |
Definition at line 78 of file bodies.cpp.