star-schiff

Library for estimating radiative properties
git clone git://git.meso-star.com/star-schiff.git
Log | Files | Refs | README | LICENSE

commit 5f8741118ad1e023829dd03defdfa571a6f051fe
parent 7aca89ba2aed019c2d8fcd706200519f45843dc8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 18 May 2016 15:57:13 +0200

Take into account the update of the s3d_scene_trace_ray API

Diffstat:
Msrc/sschiff_estimator.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sschiff_estimator.c b/src/sschiff_estimator.c @@ -266,7 +266,7 @@ compute_path_length do { do { range[0] = nextafterf(range[0], range[1]); - S3D(scene_trace_ray(scn, ray_org, ray_dir, range, &hit)); + S3D(scene_trace_ray(scn, ray_org, ray_dir, range, NULL, &hit)); } while(hit.distance < range[0] || self_hit(&hit_from, &hit, 1.e-6f)); if(S3D_HIT_NONE(&hit)) @@ -278,7 +278,7 @@ compute_path_length do { range[0] = nextafterf(range[0], range[1]); - S3D(scene_trace_ray(scn, ray_org, ray_dir, range, &hit)); + S3D(scene_trace_ray(scn, ray_org, ray_dir, range, NULL, &hit)); } while(hit.distance < range[0] || self_hit(&hit_from, &hit, 1.e-6f)); range[0] = hit.distance; @@ -437,7 +437,7 @@ accum_monte_carlo_weight f3_mulf(y, axis_y, (float)sample[1]); f3_add(ray_org[0], f3_add(ray_org[0], x, y), org); - S3D(scene_trace_ray(ctx->scene, ray_org[0], axis_z, range, &hit)); + S3D(scene_trace_ray(ctx->scene, ray_org[0], axis_z, range, NULL, &hit)); /* NULL cross section and differential cross section weight */ if(S3D_HIT_NONE(&hit)) break; @@ -462,7 +462,7 @@ accum_monte_carlo_weight f3_mulf(y, axis_y, (float)sample[1]); f3_add(ray_org[1], f3_add(ray_org[1], x, y), org); - S3D(scene_trace_ray(ctx->scene, ray_org[1], axis_z, range, &hit)); + S3D(scene_trace_ray(ctx->scene, ray_org[1], axis_z, range, NULL, &hit)); if(S3D_HIT_NONE(&hit)) /* NULL differential cross section weight */ break;