star-gs

Literate program for a geometric sensitivity calculation
git clone git://git.meso-star.fr/star-gs.git
Log | Files | Refs | README | LICENSE

commit 9d17704a5783361973f04e99bb0d630d2c5d8ab3
parent bf58170701b10064fbdff9b8900fa7b478656c91
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 29 Jun 2022 15:39:38 +0200

Fix the function geometry_compute_aabbb

Diffstat:
Msrc/sgs_geometry.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sgs_geometry.c b/src/sgs_geometry.c @@ -425,7 +425,7 @@ geometry_compute_aabb(struct sgs_geometry* geom) d3_splat(geom->upp,-DBL_MAX); coords = darray_double_cdata_get(&geom->verts); - FOR_EACH(i, 0, darray_double_size_get(&geom->verts)) { + FOR_EACH(i, 0, darray_double_size_get(&geom->verts)/3) { const double* vert = coords + i*3; geom->low[0] = MMIN(geom->low[0], vert[0]); geom->low[1] = MMIN(geom->low[1], vert[1]);