VISH
0.2
|
Bounding container implemented by a ball. More...
#include </home/werner/origo/vish/ocean/aerie/BoundingBall.hpp>
Bounding container implemented by a ball.
See also http://geometryalgorithms.com/Archive/algorithm_0107/algorithm_0107.htm
void Eagle::BoundingBall::expandBall | ( | const point_t & | point | ) |
Expand ball by point, using the algorithm http://geometryalgorithms.com/Archive/algorithm_0107/algorithm_0107.htm#fastBall() .
This algorithm is pretty slow (even though it is called fastBall ), as it involves a sqrt() function call and several vector operations. If speed is crucial, better use a BoundingBox to expand by points, and then use a global operation BoundingBox::updateBall() to compute the bounding ball. However, the bounding ball computed this way will be not as tight around the points like a ball built from expandBall() calls.
void Eagle::BoundingBall::expandBall | ( | const BoundingBall & | B | ) |
Expand a ball by another ball.
Note that this function is not necessarily the fastest.