DGtalTools  1.5.beta

Convert a mesh file into a 26-separated or 6-separated voxelization in a given resolution grid.

Usage: mesh2vol [input]

Allowed options are:

positionals:
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.
-d,--objectDomainBB use the digitization space defined from bounding box of input mesh. If seleted, the option --resolution will have no effect.
-s,--separation UINT:{6,26}=6 voxelization 6-separated or 26-separated.
-f,--fillValue change the default output volumetric image value in [1...255].
-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