commit 6310c772a495cb2d9af3c5c873f2c51d27d6009c parent 5e14c818269e40a3151723c8393179d6aee195a4 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Fri, 30 Apr 2021 18:51:27 +0200 Fix the surface ray-tracing in laser_once_scattered The ray range was wrong Diffstat:
| M | src/combustion/htrdr_combustion_compute_radiance_sw.c | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/combustion/htrdr_combustion_compute_radiance_sw.c b/src/combustion/htrdr_combustion_compute_radiance_sw.c @@ -616,12 +616,13 @@ laser_once_scattered /* Setup the ray to trace */ d3_set(rt_args.ray_org, xsc); d3_set(rt_args.ray_dir, wi); - d2_set(rt_args.ray_range, range); + rt_args.ray_range[0] = 0; + rt_args.ray_range[1] = INF; rt_args.hit_from = S3D_HIT_NULL; - /* Configure the "X-ray" surface ray trace filtering. This filtering function - * helps to avoid intersections with the side of the surfaces facing inside - * the combustion chamber to allow the rays to exit out. */ + /* Configure the "X-ray" surface ray trace filtering. This filtering + * function helps to avoid intersections with the side of the surfaces + * facing inside the combustion chamber to allow the rays to exit out. */ rt_args.filter = geometry_ray_filter_discard_medium_interface; rt_args.filter_context = &rt_ctx; rt_ctx.geom = cmd->geom;