A .hexex
file stores a tetrahedral mesh with an
.geogram
is a file format used by the Geogram library, which supports embedded attributes.
This simple program converts a .hexex
file to a .geogram
one, using per-cell-corner attributes to store the parametrization.
- a C++ 17 compiler
- CMake
- UltiMaille (included as submodule)
- Graphite or Vorpaview, to visualize the output
.geogram
file - OpenMP (optionnal)
mkdir build
cd build
cmake ..
make
The sphere.hexex
file comes from the additional material of HexEx1.
./hexex2geogram ../data/sphere.hexex ../data/sphere.geogram
Then:
- open
sphere.geogram
with Graphite - in the Properties panel, choose "ATTRIBUTE" for "painting"
- choose "cell_corners.u", "cell_corners.v" or "cell_corners.w" for "attribute"
- click on "autorange"
- use a perceptually correct colormap
The output files of MC3D2 also use the .hexex
format, with additional information at the end (the walls of the block decomposition). These walls could be saved in the output .geogram
file with cell facets attributes, but as of today (October 2023), Graphite/Vorpaview cannot display them. Instead, tetrahedra are grouped by block, and a cell attribute "cells.block_id" is exported. The computation is quite slow.
It is an ASCII-based format.
The fist line is
Then there is
The vertices indices
In case of an output of MC3D2, the file ends with the number of wall triangles
See CITATION.cff or the dedicated button on GitHub