Commit fd6e7f06 authored by Andrei Gheata's avatar Andrei Gheata Committed by Andrei Gheata
Browse files

Fixed cone shape tester. Consistent Inside tolerance check for cone.

parent 611dfe82
......@@ -512,9 +512,9 @@ public:
// very fast check on z-height
Real_v absz = Abs(point[2]);
completelyoutside = absz > MakePlusTolerant<ForInside>(cone.fDz, kConeTolerance);
completelyoutside = absz > MakePlusTolerant<ForInside>(cone.fDz, kHalfConeTolerance);
if (ForInside) {
completelyinside = absz < MakeMinusTolerant<ForInside>(cone.fDz, kConeTolerance);
completelyinside = absz < MakeMinusTolerant<ForInside>(cone.fDz, kHalfConeTolerance);
}
if (vecCore::MaskFull(completelyoutside)) {
return;
......
......@@ -33,9 +33,7 @@ int runTester(ImplT const *shape, int npoints, bool debug, bool stat)
{
ShapeTester<ImplT> tester;
#ifndef VECGEOM_FLOAT_PRECISION
tester.SetSolidTolerance(1.e-7);
#endif
tester.SetSolidTolerance(vecgeom::kHalfConeTolerance);
tester.setDebug(debug);
tester.setStat(stat);
tester.SetMaxPoints(npoints);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment