MCPcopy Create free account
hub / github.com/abess-team/abess / intersectObject

Method intersectObject

python/include/unsupported/test/BVH.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52 bool intersectVolume(const BoxType &r) { ++calls; return r.contains(p); }
53 bool intersectObject(const BallType &b) {
54 ++calls;
55 if((b.center - p).squaredNorm() < SQR(b.radius))
56 ++count;
57 return false; //continue
58 }
59
60 bool intersectVolumeVolume(const BoxType &r1, const BoxType &r2) { ++calls; return !(r1.intersection(r2)).isNull(); }
61 bool intersectVolumeObject(const BoxType &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); }

Callers 1

testIntersect1Method · 0.45

Calls 2

SQRFunction · 0.85
squaredNormMethod · 0.45

Tested by

no test coverage detected