star-uvm

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

commit 173637baf705e55359d6a3e1bdfa654883b08de4
parent da5c391fd93d5b0ee2997ecac9d8b3abac1a8cd2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 25 Sep 2020 23:42:38 +0200

Fix an error in normals precomputation

Diffstat:
Msrc/suvm_volume.c | 4++--
Msrc/suvm_volume.h | 16++++++++--------
Msrc/suvm_volume_at.c | 16++++++++--------
3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/suvm_volume.c b/src/suvm_volume.c @@ -177,8 +177,8 @@ compute_tetrahedral_mesh_normals(struct suvm_volume* vol) FOR_EACH(itetra, 0, ntetrahedra) { float* n0 = darray_float_data_get(&vol->normals) + (itetra*4 + 0)*3; float* n1 = darray_float_data_get(&vol->normals) + (itetra*4 + 1)*3; - float* n2 = darray_float_data_get(&vol->normals) + (itetra*4 + 3)*3; - float* n3 = darray_float_data_get(&vol->normals) + (itetra*4 + 2)*3; + float* n2 = darray_float_data_get(&vol->normals) + (itetra*4 + 2)*3; + float* n3 = darray_float_data_get(&vol->normals) + (itetra*4 + 3)*3; volume_compute_tetrahedron_normal(vol, itetra, 0, n0); volume_compute_tetrahedron_normal(vol, itetra, 1, n1); volume_compute_tetrahedron_normal(vol, itetra, 2, n2); diff --git a/src/suvm_volume.h b/src/suvm_volume.h @@ -1,17 +1,17 @@ -/* Copyright (C) 2013-2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2020 |Meso|Star> (contact@meso-star.com) * - * The RSys library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published - * by the Free Software Foundation, either version 3 of the License, or + * 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 + * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * The RSys library is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU Lesser General Public License - * along with the RSys library. If not, see <http://www.gnu.org/licenses/>. */ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef SUVM_VOLUME_H #define SUVM_VOLUME_H diff --git a/src/suvm_volume_at.c b/src/suvm_volume_at.c @@ -1,17 +1,17 @@ -/* Copyright (C) 2013-2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2020 |Meso|Star> (contact@meso-star.com) * - * The RSys library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published - * by the Free Software Foundation, either version 3 of the License, or + * 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 + * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * The RSys library is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU Lesser General Public License - * along with the RSys library. If not, see <http://www.gnu.org/licenses/>. */ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "suvm.h" #include "suvm_device.h"