commit 4a98e5c81465d3a947c4f61c3f5f752e00bf9c92
parent 51045b63e4763ab9a5c19622d83e1f71984c0ab0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 20 Feb 2025 17:09:57 +0100
Small update to the suvm-voxelize manual
Notify what is stored for each voxel, i.e. the number of tetrahedra it
intersects. Update VTK field name accordingly.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/suvm-voxelize.1 b/doc/suvm-voxelize.1
@@ -34,6 +34,7 @@ voxelize a tetrahedral mesh stored in the
.Xr smsh 5
file format.
Generated voxels are parallelepipeds saved in VTK format.
+Each voxel stores the number of tetrahedra covering it.
.Pp
If input is not defined, the mesh is read from standard input.
.Pp
diff --git a/src/suvm_voxelize.c b/src/suvm_voxelize.c
@@ -167,7 +167,7 @@ write_voxels
fprintf(stream, "\n");
fprintf(stream, "CELL_DATA %u\n", def[0]*def[1]*def[2]);
- fprintf(stream, "SCALARS intersect_type int 1\n");
+ fprintf(stream, "SCALARS nintersections int 1\n");
fprintf(stream, "LOOKUP_TABLE default\n");
ivxl = 0;