MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / BoundingSphere

Method BoundingSphere

src/luxrays/core/geometry/bbox.cpp:65–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void BBox::BoundingSphere(Point *c, float *rad) const {
66 *c = .5f * (pMin + pMax);
67 *rad = Inside(*c) ? Distance(*c, pMax) : 0.f;
68}
69
70BSphere BBox::BoundingSphere() const {
71 const Point c = .5f * (pMin + pMax);

Callers 2

UpdateBBoxesMethod · 0.80
PreprocessMethod · 0.80

Calls 2

DistanceFunction · 0.85
BSphereClass · 0.85

Tested by

no test coverage detected