Convert a mesh file into a 26-separated or 6-separated voxelization in a given resolution grid.
Usage: mesh2vol [input]
Allowed options are:
ositionals:
1 TEXT:FILE REQUIRED mesh file (.off).
2 TEXT=result.vol filename of ouput volumetric file (vol, pgm3d, ...).
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED mesh file (.off).
-o,--output TEXT=result.vol filename of ouput volumetric file (vol, pgm3d, ...).
-m,--margin UINT add volume margin around the mesh bounding box.
-s,--separation UINT:{6,26}=6 voxelization 6-separated or 26-separated.
-r,--resolution UINT=128 digitization domain size (e.g. 128). The mesh will be scaled such that its bounding box maps to [0,resolution)^3.
Example:
$ mesh2vol -i ${
DGtal}/examples/samples/tref.off --separation 26 --resolution 256 -o output.vol
- See also
- mesh2vol.cpp