Skip to content
Snippets Groups Projects
Commit 7bb3541a authored by Andreas Salzburger's avatar Andreas Salzburger Committed by Andreas Salzburger
Browse files

use eLOC_Z

parent fbd317c7
No related branches found
No related tags found
1 merge request!715Optimisation of Surface::intersect(...)
Pipeline #1266886 passed
...@@ -104,7 +104,7 @@ inline SurfaceIntersection CylinderSurface::intersect( ...@@ -104,7 +104,7 @@ inline SurfaceIntersection CylinderSurface::intersect(
// Create the reference vector in local // Create the reference vector in local
const Vector3D vecLocal(solution - tMatrix.block<3, 1>(0, 3)); const Vector3D vecLocal(solution - tMatrix.block<3, 1>(0, 3));
double cZ = vecLocal.dot(tMatrix.block<3, 1>(0, 2)); double cZ = vecLocal.dot(tMatrix.block<3, 1>(0, 2));
double tolerance = s_onSurfaceTolerance + bcheck.tolerance()[1]; double tolerance = s_onSurfaceTolerance + bcheck.tolerance()[eLOC_Z];
double hZ = cBounds.halflengthZ() + tolerance; double hZ = cBounds.halflengthZ() + tolerance;
return (cZ * cZ < hZ * hZ) ? status : Intersection::Status::missed; return (cZ * cZ < hZ * hZ) ? status : Intersection::Status::missed;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment