atrstm

Load and structure a combustion gas mixture
git clone git://git.meso-star.fr/atrstm.git
Log | Files | Refs | README | LICENSE

commit 5d935b2c33cecb379338404920dce1a6ff993e68
parent fe9f2143af49e296795c6d017b7342aee42164b1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 23 Apr 2021 12:29:34 +0200

Add the atrstm_get_aabb function

Diffstat:
Msrc/atrstm.c | 11+++++++++++
Msrc/atrstm.h | 6++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/atrstm.c b/src/atrstm.c @@ -27,6 +27,7 @@ #include <star/svx.h> #include <rsys/cstr.h> +#include <rsys/double3.h> #include <omp.h> @@ -317,6 +318,16 @@ atrstm_get_name(const struct atrstm* atrstm) return str_cget(&atrstm->name); } +void +atrstm_get_aabb(const struct atrstm* atrstm, double lower[3], double upper[3]) +{ + struct svx_tree_desc tree_desc = SVX_TREE_DESC_NULL; + ASSERT(atrstm && lower && upper); + SVX(tree_get_desc(atrstm->octree, &tree_desc)); + d3_set(lower, tree_desc.lower); + d3_set(upper, tree_desc.upper); +} + res_T atrstm_at (const struct atrstm* atrstm, diff --git a/src/atrstm.h b/src/atrstm.h @@ -318,6 +318,12 @@ ATRSTM_API const char* atrstm_get_name (const struct atrstm* atrstm); +ATRSTM_API void +atrstm_get_aabb + (const struct atrstm* atrstm, + double lower[3], + double upper[3]); + ATRSTM_API res_T atrstm_at (const struct atrstm* atrstm,