The smallest sphere enclosing a given set of points. More...
Public Member Functions | |
| boundSphere () | |
| Construct a null/invalid sphere. More... | |
| const point & | c () const |
| Return the centre. More... | |
| scalar | rSqr () const |
| Return the radius squared. More... | |
| scalar | r () const |
| Return the radius. More... | |
| bool | valid () const |
| Return whether this sphere is valid. More... | |
| bool | contains (const point &p) const |
| Return whether this sphere contains a given point. More... | |
| void | inflate (const scalar s) |
| Expand the sphere by the given factor. More... | |
| template<class PointList > | |
| Foam::boundSphere::PointUList< PointList > | pointUList (const PointList &ps) |
| template<class PointList > | |
| Foam::boundSphere | intersect (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs) |
| template<class PointList > | |
| Foam::boundSphere | trivial (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs) |
| template<class PointList > | |
| Foam::boundSphere | trivial (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs, FixedList< label, 4 > &boundaryPis) |
| template<class PointList > | |
| Foam::boundSphere | bruteForce (const PointList &ps) |
| template<class PointList > | |
| Foam::boundSphere | bruteForce (const PointList &ps, FixedList< label, 4 > &boundaryPis) |
| template<class PointList > | |
| Foam::boundSphere | global (const PointList &ps, const bool strict) |
| template<class PointList > | |
| Foam::boundSphere | global (const PointList &ps, randomGenerator &rndGen, const bool strict) |
| template<class PointList > | |
| Foam::boundSphere | global (const PointList &ps, FixedList< RemoteData< point >, 4 > &boundaryPis, const bool strict) |
| template<class PointList > | |
| Foam::boundSphere | global (const PointList &ps, randomGenerator &rndGen, FixedList< RemoteData< point >, 4 > &boundaryPis, const bool strict) |
Static Public Member Functions | |
| static boundSphere | cr (const point &c, const scalar r) |
| Construct given a point and a radius. More... | |
| static boundSphere | cr (const Tuple2< point, scalar > &cr) |
| Construct given a point and a radius. More... | |
| static boundSphere | crSqr (const point &c, const scalar rSqr) |
| Construct given a point and a radius squared. More... | |
| static boundSphere | crSqr (const Tuple2< point, scalar > &crSqr) |
| Construct given a point and a radius squared. More... | |
| static bool | overlap (const boundSphere &a, const boundSphere &b) |
| Return whether two spheres overlap. More... | |
| template<class PointList > | |
| static boundSphere | intersect (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs) |
| Return the sphere intersecting the given set of up to four points. More... | |
| template<class PointList > | |
| static boundSphere | trivial (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs) |
| Return the sphere bounding the given set of up to four points. More... | |
| template<class PointList > | |
| static boundSphere | trivial (const PointList &ps, const FixedList< label, 4 > &pis, const label nPs, FixedList< label, 4 > &boundaryPis) |
| Return the sphere bounding the given set of up to four points. More... | |
| template<class PointList > | |
| static boundSphere | bruteForce (const PointList &ps) |
| Return the sphere bounding the given set of points using an. More... | |
| template<class PointList > | |
| static boundSphere | bruteForce (const PointList &ps, FixedList< label, 4 > &boundaryPis) |
| Return the sphere bounding the given set of points using an. More... | |
| template<class PointList > | |
| static | boundSphere (const PointList &ps) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static | boundSphere (const PointList &ps, randomGenerator &rndGen) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static | boundSphere (const PointList &ps, FixedList< label, 4 > &boundaryPis) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static | boundSphere (const PointList &ps, randomGenerator &rndGen, FixedList< label, 4 > &boundaryPis) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static boundSphere | global (const PointList &ps, const bool strict=false) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static boundSphere | global (const PointList &ps, randomGenerator &rndGen, const bool strict=false) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static boundSphere | global (const PointList &ps, FixedList< RemoteData< point >, 4 > &boundaryPis, const bool strict=false) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
| template<class PointList > | |
| static boundSphere | global (const PointList &ps, randomGenerator &rndGen, FixedList< RemoteData< point >, 4 > &boundaryPis, const bool strict=false) |
| Return the sphere bounding the given set of points using Welzl's. More... | |
Friends | |
| bool | operator== (const boundSphere &, const boundSphere &) |
| Equality comparison. More... | |
| bool | operator!= (const boundSphere &, const boundSphere &) |
| Inequality comparison. More... | |
| Istream & | operator>> (Istream &, boundSphere &) |
| Read from stream. More... | |
| Ostream & | operator<< (Ostream &, const boundSphere &) |
| Write to stream. More... | |
The smallest sphere enclosing a given set of points.
Definition at line 62 of file boundSphere.H.
|
inline |
Construct a null/invalid sphere.
Definition at line 98 of file boundSphereI.H.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the local sphere containing the points on this processor only.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the local sphere containing the points on this processor only.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the local sphere containing the points on this processor only.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the local sphere containing the points on this processor only.
|
inlinestatic |
Construct given a point and a radius.
Definition at line 105 of file boundSphereI.H.
References Foam::constant::universal::c, and Foam::sqr().

|
inlinestatic |
Construct given a point and a radius.
Definition at line 111 of file boundSphereI.H.
References Tuple2< Type1, Type2 >::first(), Tuple2< Type1, Type2 >::second(), and Foam::sqr().

|
inlinestatic |
Construct given a point and a radius squared.
Definition at line 120 of file boundSphereI.H.
References Foam::constant::universal::c.
|
inlinestatic |
Construct given a point and a radius squared.
Definition at line 130 of file boundSphereI.H.
References Tuple2< Type1, Type2 >::first(), and Tuple2< Type1, Type2 >::second().

|
inline |
Return the centre.
Definition at line 144 of file boundSphereI.H.
Referenced by print::generate().

|
inline |
Return the radius squared.
Definition at line 150 of file boundSphereI.H.
|
inline |
Return the radius.
Definition at line 156 of file boundSphereI.H.
References Foam::sqrt().
Referenced by print::generate(), and boundSphere::overlap().


|
inline |
Return whether this sphere is valid.
Definition at line 162 of file boundSphereI.H.
Referenced by boundSphere::overlap().

|
inline |
Return whether this sphere contains a given point.
Definition at line 168 of file boundSphereI.H.
References Foam::magSqr(), p, and Foam::blendedInterfacialModel::valid().

|
inline |
Expand the sphere by the given factor.
Definition at line 174 of file boundSphereI.H.
References s(), and Foam::sqr().

|
inlinestatic |
Return whether two spheres overlap.
Definition at line 182 of file boundSphereI.H.
References b, Foam::magSqr(), boundSphere::r(), Foam::sqr(), and boundSphere::valid().
Referenced by nearby::intersectFaces(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().


|
inlinestatic |
Return the sphere intersecting the given set of up to four points.
|
inlinestatic |
Return the sphere bounding the given set of up to four points.
Referenced by TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().

|
inlinestatic |
Return the sphere bounding the given set of up to four points.
|
inlinestatic |
Return the sphere bounding the given set of points using an.
inefficient brute-force method
|
inlinestatic |
Return the sphere bounding the given set of points using an.
inefficient brute-force method
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the global sphere containing the points on all processors.
Referenced by print::generate().

|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the global sphere containing the points on all processors.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the global sphere containing the points on all processors.
|
inlinestatic |
Return the sphere bounding the given set of points using Welzl's.
algorithm. Constructs the global sphere containing the points on all processors.
|
inline |
Definition at line 41 of file boundSphereI.H.
|
inline |
Definition at line 195 of file boundSphereI.H.
|
inline |
Definition at line 207 of file boundSphereI.H.
|
inline |
Definition at line 221 of file boundSphereI.H.
|
inline |
Definition at line 234 of file boundSphereI.H.
|
inline |
Definition at line 246 of file boundSphereI.H.
|
inline |
Definition at line 308 of file boundSphereI.H.
References rndGen().

|
inline |
Definition at line 322 of file boundSphereI.H.
References rndGen().

|
inline |
Definition at line 336 of file boundSphereI.H.
References rndGen().

|
inline |
Definition at line 350 of file boundSphereI.H.
References rndGen().

|
friend |
Equality comparison.
|
friend |
Inequality comparison.
|
friend |
Read from stream.
|
friend |
Write to stream.