Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITAPropagationPathSim
Commits
edb50ced
Commit
edb50ced
authored
Apr 16, 2020
by
Philipp Schäfer
Browse files
Atmospheric Ray Tracing - Simulation Engine
- bugfix: added missing position offset for periodic extension of rays
parent
c9b64dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ITAPropagationPathSim/AtmosphericRayTracing/Simulation/Engine.cpp
View file @
edb50ced
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment