Examples¶
The following examples show how distance3d can be used.
AABB Tree¶
Containment Tests¶
Distance¶
Distance from point to triangle
Distance from point to line segment
Distance from point to rectangle
Distance from point to ellipsoid
Distance from line to triangle
Distance from line segment to box
Distance from line to line segment
Distance from line segment to triangle
Distance between line and circle
Distance from line segment to circle
Distance from point to cylinder
Distance from plane to triangle
Distance between two triangles
Distance from line to rectangle
Distance from line segment to rectangle
Distance from plane to rectangle
Distance from triangle to rectangle
Distance from plane to ellipsoid
Distance from line segment to plane
Distance from plane to cylinder
Distance between two rectangles
Distance from line segment to line segment
Distance from rectangle to box
GJK¶
Distance between spheres with GJK
Distance between ellipses with GJK
Distance between boxes with GJK
Distance between convex meshes with GJK
Distance between ellipsoids with GJK
Distance between cylinders with GJK
Distance between capsules with GJK
Plot Samples from Minkowski Difference
Collision resolution with EPA after GJK
Visualizations¶
Visualize Intersection of Tetrahedra
Visualize Subdivision of the AABB Tree
Benchmark collision detection for boxes
Benchmark collision detection for disks
Benchmark collision detection for ellipses
Physical simulation with collision detection
Benchmark collision detection for cones
Benchmark collision detection for ellipsoids
Benchmark collision detection for capsules
Benchmark collision detection for cylinders
Visualize pressure fields with different young’s moduli
Benchmark collision detection for meshes
Visualize Pressure Field of Two Colliding Objects
Physical Simulation of Bouncing Ball
Physical Simulation of Bouncing Ball on Hand
Collisions between robot and environment
Physical Simulation of Soft Balls Bouncing in a Wooden Box
Visualize Pressure Fields of Moving Object