Commit 32c030be authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

ART - EigenraySearch

- Fixed a bug that occured if point of minimum distance was ray end point
- Also gives a warning that maximum propagation time was chosen too low
parent c411417d
......@@ -211,6 +211,15 @@ void EigenraySearch::CAdaptiveWorker::SetEigenrayEndPoint()
const int idxBeforeMin = receiverData->idxMinDist;
const VistaVector3D& rMin = receiverData->posMinDist;
if (m_pMinDistanceRay->NumPoints() < idxBeforeMin)
ITA_EXCEPT_INVALID_PARAMETER("Index for minimum distance out of bounds!");
if (m_pMinDistanceRay->NumPoints() == idxBeforeMin + 1) //Min dist point is endpoint
std::cout << "WARNING: EigenraySearch::Engine: Ray end point is closest point to receiver. This usually happens if maximum propagation time is too low." << std::endl;
//Interpolate to new point of minimum
const VistaVector3D& r1 = m_pMinDistanceRay->at(idxBeforeMin).position;
const VistaVector3D& r2 = m_pMinDistanceRay->at(idxBeforeMin + 1).position;
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