commit c1f8dea8546218e96c84409840a26a84a0aa29e8 parent 97612c490aa06adaf8bf7c58016233c7a8dacbe4 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Thu, 13 Dec 2018 11:32:08 +0100 Remove a star-enclosure related workaround that is no longer needed Diffstat:
| M | src/sdis_scene_Xd.h | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/sdis_scene_Xd.h b/src/sdis_scene_Xd.h @@ -591,10 +591,8 @@ XD(setup_enclosure_geometry)(struct sdis_scene* scn, struct sencXd(enclosure)* e CALL(s3d_scene_view_compute_area(enc_data->s3d_view, &S)); CALL(s3d_scene_view_compute_volume(enc_data->s3d_view, &V)); #endif - /* The volume of the enclosure is actually negative since Star-Enc ensures - * that the normal of its primitives point outward the enclosure. Take its - * absolute value in order to ensure a postive value. */ - enc_data->S_over_V = S/absf(V); + enc_data->S_over_V = S / V; + ASSERT(enc_data->S_over_V >= 0); #undef CALL /* Set enclosure hc upper bound regardless of its media being a fluid */