star-uvm

Spatial structuring of unstructured volumetric meshes
git clone git://git.meso-star.fr/star-uvm.git
Log | Files | Refs | README | LICENSE

commit 07488f244209e046bd3825535980cf2fe2f75bb9
parent b25e56300a6b6cfdef60ebb06df7f2e909370775
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 12 Oct 2020 11:04:27 +0200

Fix an issue in the computation of the volume AABB

Diffstat:
Msrc/suvm_volume.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/suvm_volume.c b/src/suvm_volume.c @@ -491,9 +491,9 @@ suvm_tetrahedral_mesh_create vol->low[0] = MMIN(inner->low[0][0], inner->low[1][0]); vol->low[1] = MMIN(inner->low[0][1], inner->low[1][1]); vol->low[2] = MMIN(inner->low[0][2], inner->low[1][2]); - vol->upp[0] = MMIN(inner->upp[0][0], inner->upp[1][0]); - vol->upp[1] = MMIN(inner->upp[0][1], inner->upp[1][1]); - vol->upp[2] = MMIN(inner->upp[0][2], inner->upp[1][2]); + vol->upp[0] = MMAX(inner->upp[0][0], inner->upp[1][0]); + vol->upp[1] = MMAX(inner->upp[0][1], inner->upp[1][1]); + vol->upp[2] = MMAX(inner->upp[0][2], inner->upp[1][2]); } exit: