star-enclosures-3d

Extract enclosures from 3D geometry
git clone git://git.meso-star.fr/star-enclosures-3d.git
Log | Files | Refs | README | LICENSE

commit a302a16d8fb1d30bc931b05decc5897244ffa297
parent 6c17b306da3b37f58f23e0598bd4b4c589d5e213
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 22 Jun 2021 16:53:59 +0200

Fix API break on filter function introduced by Star-3D 0.8

Diffstat:
Mcmake/CMakeLists.txt | 4++--
Msrc/senc3d_scene_analyze.c | 3++-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) |Meso|Star> 2016-2020 +# Copyright (C) |Meso|Star> 2016-2020 (contact@meso-star.com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -30,7 +30,7 @@ cmake_dependent_option(HUGE_ADDITIONAL_TESTS # Check dependencies ############################################################################### find_package(RCMake 0.4 REQUIRED) -find_package(Star3D 0.7.1 REQUIRED) +find_package(Star3D 0.8 REQUIRED) find_package(RSys 0.8.1 REQUIRED) find_package(OpenMP 2.0 REQUIRED) diff --git a/src/senc3d_scene_analyze.c b/src/senc3d_scene_analyze.c @@ -157,6 +157,7 @@ self_hit_filter (const struct s3d_hit* hit, const float ray_org[3], const float ray_dir[3], + const float ray_range[2], void* ray_data, void* filter_data) { @@ -172,7 +173,7 @@ self_hit_filter const struct triangle_in* trg = NULL; const union double3* vertices; - (void)ray_org; (void)ray_dir; (void)filter_data; + (void)ray_org; (void)ray_dir; (void)ray_range; (void)filter_data; ASSERT(hit && fctx_); if(fctx_->type == FCTX2) {