#include <geometry_capsule.h>
List of all members.
Detailed Description
template<typename math_types_>
class OpenTissue::geometry::Capsule< math_types_ >
Capsule
- defined by 2 end points and a radius
Member Typedef Documentation
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
Constructor & Destructor Documentation
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
Member Function Documentation
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
Returns the point on the line seqment (p1-p0) that results in the shortest distance to p
template<typename math_types_ >
Compute Bounding Box. This method computes an axis aligned bounding box (AABB) that encloses the geometry.
- Parameters:
-
| r | The position of the model frame (i.e the coordinate frame the geometry lives in). |
| R | The orientation of the model frame (i.e the coordinate frame the geometry lives in). |
| min_coord | Upon return holds the minimum corner of the box. |
| max_coord | Upon return holds the maximum corner of the box. |
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
Implicit Capsule.
p0, p1 : end points r : radius
The idea is plain simple: 1) Construct a line l(t) := p0+t*(p1-p0) 2) Find the shortest distance from p to the line l(t) find t such that l(t)-p is perpendicular to p1-p0, e.g. (l(t)-p)*(p1-p0) = 0 3) Clamp t to [0;1], and determine x = l(t) this nice trick ensures we can handle both the cylinder and the hemispheres equally 4) Set F(p) := |x-p| - r F(p) < 0 <-- p inside capsule F(p) = 0 <-- p on capsule surface F(p) > 0 <-- p outside capsule
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
Returns the point on the line seqment (p1-p0) that results in the shortest distance to p
template<typename math_types_ >
template<typename math_types_ >
Member Data Documentation
template<typename math_types_ >
template<typename math_types_ >
template<typename math_types_ >
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/geometry/geometry_capsule.h