Closed geogunow closed 8 years ago
I think this can be fixed by changing the following line in Cell::containsPoint(...)
:
if (iter->second->_surface->evaluate(point) * iter->second->_halfspace
< -ON_SURFACE_THRESH)
to:
if (iter->second->_surface->evaluate(point) * iter->second->_halfspace
< 0.0)
Fixed in #262.
Developing my tests for tracking, I have come across some bugs in our current tracking. Specifically, if a create a track that barely intersects a circle, it calculates a segment length of infinity. Whereas the segment lengths should be roughly:
[1.82467365265, 0.00752119300887, 1.82467365265]
OpenMOC calculates [1.82467365265, 0.00752119300887, inf]
The code to produce this result is: