htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit c7b47ff81cd070a3254159cdc5574528ee77a82f
parent f98a86907d867a2f96f52b49506ec7998917c7fb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 19 Oct 2018 16:05:19 +0200

Remove dead code

Diffstat:
Msrc/htrdr.c | 64----------------------------------------------------------------
1 file changed, 0 insertions(+), 64 deletions(-)

diff --git a/src/htrdr.c b/src/htrdr.c @@ -149,70 +149,6 @@ error: goto exit; } -#if 0 -static res_T -setup_geometry(struct htrdr* htrdr, const char* filename) -{ - struct s3d_scene* scn = NULL; - struct s3daw* s3daw = NULL; - res_T res = RES_OK; - ASSERT(htrdr); - - res = s3d_scene_create(htrdr->s3d, &scn); - if(res != RES_OK) { - htrdr_log_err(htrdr, "could not create the Star-3D scene.\n"); - goto error; - } - - if(filename) { - size_t ishape, nshapes; - - res = s3daw_create(&htrdr->logger, htrdr->allocator, NULL, NULL, htrdr->s3d, - htrdr->verbose, &s3daw); - if(res != RES_OK) { - htrdr_log_err(htrdr, "could not create the Star-3DAW device.\n"); - goto error; - } - res = s3daw_load(s3daw, filename); - if(res != RES_OK) { - htrdr_log_err(htrdr, "could not load the obj file `%s'.\n", filename); - goto error; - } - - S3DAW(get_shapes_count(s3daw, &nshapes)); - FOR_EACH(ishape, 0, nshapes) { - struct s3d_shape* shape; - S3DAW(get_shape(s3daw, ishape, &shape)); - res = s3d_mesh_set_hit_filter_function(shape, htrdr_ground_filter, NULL); - if(res != RES_OK) { - htrdr_log_err(htrdr, - "could not setup the hit filter function of the ground geometry.\n"); - goto error; - } - res = s3d_scene_attach_shape(scn, shape); - if(res != RES_OK) { - htrdr_log_err(htrdr, - "could not attach the loaded geometry to the Star-3D scene.\n"); - goto error; - } - } - } - - res = s3d_scene_view_create(scn, S3D_TRACE, &htrdr->s3d_scn_view); - if(res != RES_OK) { - htrdr_log_err(htrdr, "could not create the Star-3D scene view.\n"); - goto error; - } - -exit: - if(scn) S3D(scene_ref_put(scn)); - if(s3daw) S3DAW(ref_put(s3daw)); - return res; -error: - goto exit; -} -#endif - static res_T open_file_stamp (struct htrdr* htrdr,