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

Atmospheric Ray Tracing - Simulation Engine

- bugfix: added missing position offset for periodic extension of rays
parent c9b64dea
......@@ -50,11 +50,12 @@ class CWorker
const int idxEndReflection = iReflectionIndices[reflectionOrder - 1];
double tOffset = pRay->TimeStamps()[idxEndReflection] - pRay->TimeStamps()[idxStartReflection];
VistaVector3D rXYOffset = pRay->SamplingPoints()[idxEndReflection] - pRay->SamplingPoints()[idxStartReflection];
for (int idx = idxStartReflection+1; idx < idxEndReflection; idx++)
{
const double t = pRay->TimeStamps()[idx] + tOffset;
const VistaVector3D r = pRay->SamplingPoints()[idx];
const VistaVector3D r = pRay->SamplingPoints()[idx] + rXYOffset;
const VistaVector3D n = pRay->WavefrontNormals()[idx];
pRay->Append(r, n, t);
......
Markdown is supported
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