schiff

Estimate the radiative properties of soft particless
git clone git://git.meso-star.com/schiff.git
Log | Files | Refs | README | LICENSE

commit 0ab680e39b68125158d49ccd728a1f69eba9cb56
parent c2aeee9e8cbc3ff374fc644cd13d886e2425adc8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  2 Oct 2019 15:37:49 +0200

Rm a now useless caution when creating a S3D view

Star-3D 0.7 allows the creation of a scene view with a null mask while
previously it returns an error. We thus remove the now useless
S3D_GET_PRIMITIVE flag when creating the view used to compute the volume
of a particle.

Diffstat:
Msrc/schiff_geometry.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/schiff_geometry.c b/src/schiff_geometry.c @@ -327,10 +327,7 @@ compute_s3d_shape_volume if(RES_OK != (res = s3d_scene_create(s3d, &scn))) goto error; if(RES_OK != (res = s3d_scene_attach_shape(scn, shape))) goto error; - /* FIXME the scene view should not required a specific creation mask, but - * right now, Star-3D return an error if the mask is NULL. So the - * S3D_GET_PRIMITIVE to workaround this issue */ - if(RES_OK != (res = s3d_scene_view_create(scn, S3D_GET_PRIMITIVE, &view))) goto error; + if(RES_OK != (res = s3d_scene_view_create(scn, 0, &view))) goto error; if(RES_OK != (res = s3d_scene_view_compute_volume(view, &volume))) goto error; exit: